I found another strange thing:
this is the complete model validation:
var $validate = array(
'ben_name' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyName')
),
'ben_email' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyEmail'),
'email' => array('rule' => array('email', true), 'message'
=> 'SyntaxEmail'),
'unique' => array('rule' => 'isUnique', 'message' =>
'EmailNotUnique')
),
'ben_password' => array(
'required' => array('rule' => 'notEmpty', 'message' =>
'EmptyPassword')
)
);
And this I have in my view
<?php echo $this->Form->input('ben_name', array('label'=>__('* Name',
true), 'div' =>'row')); ?>
<?php echo $this->Form->input('ben_email', array('label'=>__('* E-Mail
Adresse', true), 'div' =>'row')); ?>
<?php echo $this->Form->input('ben_password', array('label'=>__('*
Passwort', true), 'div' =>'row')); ?>
The name rule works just perfect.
The email rule so..so... see first posting above
And the password field gets completely ignored...
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php