⚠ 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

how to send a parameter to a callback function ?



khashabawy
  • profile picture
  • Member

Posted 28 May 2012 - 07:16 AM

how may i send a parameter with this function


$crud->callback_after_upload(array($this,'resize_move_image_edit'));



I want to send the $id besides these :)


function resize_move_image_edit($uploader_response,$field_info, $files_to_upload)




and :)

is it possible to do this in the controller main function not in the call back function ?


$field_info->any_thing = "any_thing";

/// or

$field_info['any_thing'] = "any_thing";

web-johnny
  • profile picture
  • Administrator
  • 1,166 posts

Posted 28 May 2012 - 20:32 PM

Sorry you cannot do this without changing the library. As for the first question I have answer it here: /topic/498-pass-data-to-callback/page__view__findpost__p__2033