Re: Catch errors (urgent)

2008-04-30 Thread inma
Ok. I will take a look. Thanks. On 30 abr, 13:28, Sliv <[EMAIL PROTECTED]> wrote: > Look at the validationErrors property > Look at the beforeSave methodhttp://api.cakephp.org/1.2/class_model.html > > Look at the validationErrors > propertyhttp://api.cakephp.org/1.2/class_view.html > > Look at

Re: Catch errors (urgent)

2008-04-30 Thread Sliv
Look at the validationErrors property Look at the beforeSave method http://api.cakephp.org/1.2/class_model.html Look at the validationErrors property http://api.cakephp.org/1.2/class_view.html Look at the validateErrors method http://api.cakephp.org/1.2/class_controller.html --~--~-~--~

Catch errors (urgent)

2008-04-30 Thread inma
Hi, I need to catch model and controller errors and send it to the view throw json. I need to send to the view something lik: {success: false, error: "model/controller errors"} How can I catch the model errors from $validate rules? And how can I catch errors from controller in actions like save