I recommend taking a look at https://github.com/friendsofcake/crud, if not
for the code (but why not =) ) for an example of how to do what you ask
e.g. http://friendsofcake.com/crud/examples/blog.html#validation_errors
curl -I -X POST http://your-site-domain.com/posts/add.json \
-d
Thanks, AD. I'll be reading the example today.
Cheers,
OJ
On Wednesday, March 12, 2014 12:06:00 PM UTC+8, OJ Tibi - @ojtibi wrote:
Hi folks,
I was wondering if there was a way to let the client app know which fields
it submitted have validation errors. (As you can see, I placed Form
AD,
I would just want to say that your reply was helpful! I'm now reading the
details of crud/Error/CrudExceptionRenderer.php and
crud/Error/Exception/CrudValidationException and I'll be taking cue from
these. It also looks like the friendsofcake/crud plugin will be very useful
to me someday
Hi folks,
I was wondering if there was a way to let the client app know which fields
it submitted have validation errors. (As you can see, I placed Form
between parentheses because there isn't really an HTML form in a REST API
request.) While the Cookbook recommends to use the built-in