Re: Handy trick for forms that down offer all fields from model.

2008-11-13 Thread teknoid
'requied'=>true, is rarely necessary. You are probably more interested in the 'notEmpty' rule. If you read the manual (ans possibly my post above), you'll see why 'required' doesn't exactly mean what you'd expect. Using the default value of false, will help you to avoid any trickery (unless you tr

Re: Handy trick for forms that down offer all fields from model.

2008-11-13 Thread teknoid
I assume you had 'required'=>true as part of the validation rules. Seems like, yet another, misunderstanding :) http://teknoid.wordpress.com/2008/11/04/requiredtrue-the-source-of-major-confusion/ On Nov 13, 9:02 am, Josey <[EMAIL PROTECTED]> wrote: > As a relatively new baker and programmer, for

Handy trick for forms that down offer all fields from model.

2008-11-13 Thread Josey
As a relatively new baker and programmer, for that matter, I ran into a problem earlier this week. I was creating a form for users to edit their information however, not all fields were present in this form for the general member but those fields happened to be required fields. In the model those