'y'); protected function _initElements() { $this->addElement('text', 'name', array('label' => 'Client Name', 'required' => true, 'maxlength' => '50')); $this->getElement('name')->addValidator('StringLength', false, array('max' => 50)); $this->addElement('text', 'company', array('label' => 'Company Name', 'maxlength' => 50)); $this->getElement('company')->addValidator('StringLength', false, array('max' => 50)); $this->addElement('text', 'city', array('label' => 'City', 'maxlength' => 50)); $this->getElement('city')->addValidator('StringLength', false, array('max' => 50)); $this->addElement('textarea', 'testimonial', array('label' => 'Testimonial', 'required' => true,)); $this->addElement('checkbox', 'show', array('label' => 'Show on user end', 'decoration' => 'simple')); return $this; } }