Here is my form in the view:

                echo $form->create( 'post );
                echo $form->input( 'title' );
                echo $form->end( 'Add' );

Here is my validation in the post model:

        var $validate = array(
                'title' => array(
                        'rule' => array( 'minLength' , 1 ),
                        'mesage' => 'wtf?',
                        'allowEmpty' => false
                )
        );

My 'add' function in the controller goes through the processes of
validating $this->data on my own.  I've tried using $form->error and
$form->isFieldError but nothing is automatically generating the errors
if I submit an empty form.  I've read all about the data validation
and what-not but can't find anything that works like it did in Cake
1.1.  Am I missing something?

What function do I need to add to show these errors and where do I
need to add it?

Thanks!


--~--~---------~--~----~------------~-------~--~----~
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