⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Ä°mage Crud help me



hasnhasan

hasnhasan
  • profile picture
  • Member

Posted 20 September 2013 - 18:36 PM

Hello,
Image filtering using Crud want to do and I want to enter a value in column p_id, but I can not.

my chart
id | p_id | url...

$image_crud = new image_CRUD();
        
        $image_crud->set_table('proje')
                   ->set_url_field('url')
                   ->set_image_path('uploads')
                   ->where('p_id' ,$p_id);
                  ->call_back_insert('p_id',$p_id);

            
        $output = $image_crud->render();
 

 


davidoster

davidoster
  • profile picture
  • Member

Posted 20 September 2013 - 21:16 PM

Hello and welcome to the forums [member=hasnhasan].

I am afraid that you've mixed up Image CRUD with Grocery CRUD.

Image CRUD doesn't have where or call_back_insert as you stated on your code.

Check the documentation again, http://www.grocerycrud.com/image-crud/documentation


hasnhasan

hasnhasan
  • profile picture
  • Member

Posted 21 September 2013 - 08:49 AM

Thank you  davidoster,

I know that I wrote as an example of this command.
I wanted to do 'p_id' column value to save image loading.


davidoster

davidoster
  • profile picture
  • Member

Posted 21 September 2013 - 22:11 PM

Ok! Unfortunately I don't know an easy way to do this but then again I am not an expert on Image CRUD.

Maybe somebody else can come up with some good idea!