Just for my own curiosity, I tried to implement your setup, and it is
correct, the select will be validated, but the error message will not
be displayed.

The reason may be that you are using:

$form->select('ProfileAttribute.gender', array('M' => 'Male', 'F' =>
'Female'), false, array('empty' => 'Please choose'));

instead of:

$form->input('ProfileAttribute.gender', array('empty' => 'Please
choose'));

where the last gets the option values from the controller set method.

Browsing through the form helper code, it seems to me, that the form
helper method select, does not concern itself with errors returned
from the validation. On the other hand, the form helper method input
does so.

Maybe you should consult your other code samples and confirm that you
are using the $form->select() and not the $form->input() to display
the select field!
Enjoy,
   John



On May 23, 9:30 am, Ed Propsner <[email protected]> wrote:
> It worked just fine to pull the errors out of the array and display them
> manually, it was just more coding than I would have liked.
> I was more interested in finding out what caused the problem in the first
> place more than I was finding an 'alternative' for validation and displaying
> errors.
>
> Honestly, I'm over it 8-) The forms are all done and working.
> If I find out what the problem is now it would probably just make me want to
> drop kick my computer because the solution always ends up being something
> ridiculously simple staring me in the face the whole time. It's the nature
> of the beast 8-)
>
[snip]

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to