Tuesday, December 6, 2011

Re: Edit an object without creating it

On Mon, Dec 5, 2011 at 1:54 PM, phpMagpie <paul@webbedit.co.uk> wrote:
> You should never get to the point of editing a record's data before first
> displaying a form for that record.  It's at this point you should check if a
> record with the given ID exists and act accordingly.

I don't agree with you. You can't make assumptions about client side
data: what if users try to communicate with your application without
using a browser (e.g. your app is REST enabled)? He already knows the
format of the data the server is expecting hence he tries to send a
request without filling the form..


Regards,
Matteo

--
http://www.matteolandi.net/

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: