예제 #1
0
 /**
  * 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));
 }
예제 #2
0
파일: Password.php 프로젝트: xinghao/shs
 /**
  * (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);
 }