Thursday, September 23, 2010

Apply style in Zend text field

How to apply style in Zend text field

$password = Zend_Registry::get('Zend_Translate')->_('* Password');
// Init password
$this->addElement('Password', 'password', array(
          'label' => $password,
          'required' => true,
          'allowEmpty' => false,
          'tabindex' => 2,
          'filters' => array('StringTrim',),
          'attribs' => array ('style' => 'width: 95%'),
        ));

No comments:

Post a Comment