I'm trying to setup client and server validation in a Zend_Dojo_Form.
Anyone an idea how to do that ?
Ex :
$this->addElement( 'TextBox', 'email', array( 'value' => '', 'label' => 'Email address : ', 'trim' => true, 'propercase' => true, 'required' => true, 'Validator' => 'EmailAddress' // this doesn't work ? Can we combine these 2 ?
)
);
$this->addElement( 'Text')
/*// I'd love to get this working with client side validation...
$email = new Zend_Form_Element_Text('email');
$email->setLabel('Email address : ')
->addValidator('EmailAddress')
->setRequired(true)
->addFilter('StringToLower');
*/
Téléchargez le nouveau Windows Live Messenger ! Téléchargez Messenger, c'est gratuit !
没有评论:
发表评论