When i do validation in my model, the minLength does not work, when i
have more that 0 characters. My validation looks like this:

var $validate = array(
        'adgangskode' => array(
                'minLength' => array(
                        'rule' => array('minLength', 6),
                        'message' => 'Dit password skal være minimum 6 tegn 
langt'
                )
        )
);

or this

var $validate = array(
        'adgangskode' => array(
                'rule' => array('minLength', 6),
                'message' => 'Dit password skal være minimum 6 tegn langt'
        )
);

i have tried '6' in stead of 6. Does anybody have an idea of what
could be the problem?

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