⚠ 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

managing errors on callbacks



jcasanova
  • profile picture
  • Member

Posted 09 May 2012 - 20:00 PM

When I use $crud->callback_insert(array($this,'insert_newuser'));

how can I give back an error to the form and stop the process??

is it possible??

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

Posted 09 May 2012 - 20:54 PM

For now it is not possible to return a string for an error for callbacks (except the upload callback) . The only thing that you can do is to return false and have a generic error. If you want to give a more specific error the only way to do it right now is from the set_rules as a callback.