personID = $personID; } public function init() { $this->setName("NewPassword"); $this->setMethod('post'); $this->addElement('hidden', 'personID', array( 'value' => $this->personID )); $this->addElement('password', 'password', array( 'filters' => array('StringTrim'), 'validators' => array( array('StringLength', false, array(0, 50)), ), 'required' => true, 'label' => 'Password:', )); $this->addElement('submit', 'savePassword', array( 'required' => false, 'ignore' => true, 'label' => 'Save', )); } }