public function init() { //call the parent init parent::init(); // customize $this->getElement('passwd')->setRequired(false); $this->getElement('passwdVerify')->setRequired(false); $this->getElement('submit')->setLabel('Save User'); }
public function init() { // make sure parent is called! parent::init(); // specialize this form $this->removeElement('userId'); $this->getElement('submit')->setLabel('Register'); $this->removeElement('role'); }