The problem I am having is, no error messages are showing on the search
form, even though cake is correctly flagging the field as invalid in
the controller. Couldn't find help in the manual validation section.
Also checked this forum before posting this. Using 1.1.12.4205.

Hopefully someone can spot what is wrong.

My search form has a field called Product/name.


Model
---------

Product/name is defined to $validate as VALID_NUMBER (to try and see an
obvious error msg).


Controller:
-------------

if (!$this->Product->validates($this->data))
     return;

At this point,  $this->Product->validationErrors shows an error for the
name field. So the validation check is working.


View
-------

echo $html->input('Product/name');
echo $html->tagErrorMsg('Product/name', 'MISSING: Please enter a valid
product name.');

The 'Missing...' message is *not* displayed.

Am I supposed to do something additional in the controller to set the
errors in the html helper object so when it is later called it can
detect there are errors?

Stumped and would really appreciate any help.

Thanks.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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