⚠ 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

Custom action



Robert
  • profile picture
  • Member

Posted 20 November 2013 - 09:57 AM

Is there any way to auto run a add_action after a getState ?

 

The add_action : 

$crud->add_action('Send Email', base_url("assets/img/repartizare.png"), 'main/send_email', 'ConfirmSend');

Example :

if ($crud->getState() == 'success') 	{
$this->send_email()
}