I have the exact same problem but i am assigning the errormessages in
the view and not in the model.

Lets say i have 2 validation rules required, length for the field
title.

var $validate = array (
        'title' => array(
                'required' => array('rule'=> VALID_NOT_EMPTY),
                'length'   => array('rule'=>array('maxLength',100))
        )
);

If i now give the form helper the error array with those 2 conditions
in the view like this

<?= $form->input('titel', array( 'error' =>
                                                array(
                                                        'required'=>'Bitte 
dieses Feld ausfüllen',
                                                        'length'  =>'Das Feld 
darf nicht mehr als 100 Zeichen
enthalten'
                                                )
                                        )
);?>

there won't be displayed any of those error messages and even the
default error messages are not displayed.

I hope somebody can tell me why und help me out with this.

Thanks in advance
worthy

On 25 Aug., 19:32, Jim-Bingo <[EMAIL PROTECTED]> wrote:
> How do I show the errormessages that I specified in the model? like
> this:  'message' => 'An errormessage'

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