Hi all

i have created a form:
this is the code

class Default_Form_User_Register extends Zend_Form{
public function init(){
$this->clearDecorators();
$this->setAction('/user/register')->setMethod('post')->setEnctype(Zend_Form::ENCTYPE_MULTIPART);
 $this->addElement('text', 'username', array(
'label' => 'Username',
                        'required'   => true,
                        'filters'    => array('StringTrim','StringtoLower'),
                ));
               $this->addElement('password', 'password', array(
                        'label'      => 'Password:',
                        'required'   => true,
                        'filters'    => array('StringTrim'),
              ));
...........................
}
}

Ok my problem is:

how i can remove all decorators type?, for example:
<label>username</label><input type="text"......../>

and if is possible to remove all decorators, how i can get for a input only
label, input and error on separate variables?

thanks in advance for your precious help

Reply via email to