[development]
; informations générales du formulaire
user.login.action = "/user/login.php"
user.login.method = "post"
[...]
; element password
user.login.elements.password.type = "password"
user.login.elements.password.options.validators.strlen.validator = "StringLength"
user.login.elements.password.options.validators.strlen.options.min = "6"
user.login.elements.password.options.required = true
$config = new Zend_Config_Ini($configFile, 'development');
$form = new Zend_Form($config->user->login);
if( !empty($_POST) )
{
if (!$form->isValid($_POST))
{
//erreur
}
else
{
//ok
}
}
else
{
echo $form;
}