⚠ 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

Send another parameter to callback



mrtakdnz
  • profile picture
  • Member

Posted 16 August 2012 - 19:37 PM

Hi. Is there any way to send a user parameter to the callback function? For Ex:


function mailer($user_mail) {
// bla bla bla...
$this->crud->callback_after_insert(array($this,'_send_mails'));
}
function _send_mails($post_array,$primary_key,$user_mail) {
// bla bla bla...
}


Something like this. Or if i set the variable as $this->user_mail = $user_mail; can i access it from callback function?

Thanks in advance...

imag
  • profile picture
  • Member

Posted 20 August 2012 - 08:56 AM

may this helps:
/topic/579-how-to-add-second-value-to-the-set-rule-callback-function/

mrtakdnz
  • profile picture
  • Member

Posted 15 September 2012 - 23:27 PM

Oh thanks much...