/** * Initializes form element. */ public function init() { parent::init(); $this->addPrefixPath('Application_Form_Decorator', 'Application/Form/Decorator', Zend_Form::DECORATOR); $this->setAllowEmpty(false); $this->addValidator('stringLength', false, array('min' => 6)); }
/** * (non-PHPdoc) * @see library/Zend/Form/Zend_Form_Element#init() */ public function init() { // Call parent's init method parent::init(); // call the CrFramework form element common init function // refer to CrFramework_Form_Element_ElementCommon.php CrFramework_Form_Element_ElementCommon::init($this, $this->_cssClass); }