⚠ 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

callback_after_update



oviedo93
  • profile picture
  • Member

Posted 18 September 2012 - 09:12 AM

I want to list the registers of a table from my database after do a callback_after_update;

Example:

$crud->callback_after_insert(array($this, 'list_another_table($output))')); /* this don't work */


I tried the next one. The last instruction of my function:

$this->centros_management();

/* but don't work */


How can i do?

Thanks a lot
Carlos

midnigther
  • profile picture
  • Member

Posted 18 September 2012 - 18:51 PM


$crud->callback_after_insert (array($this, 'list_all'));
...
public function list_all ($post_array, $primary_key)
{
//Load and call model functions
}