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
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
--~--~-~--~
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