/** * (non-PHPdoc) * @see library/Zend/Form/Zend_Form_Element#init() */ public function init() { parent::init(); // default use the button name as button Label $this->setValue(Common::titleCase($this->getName())); //set standard decorator $this->addPrefixPath('CrFramework_Form_Decorator', 'CrFramework/Form/Decorator', 'decorator'); $this->setDecorators(array('Button')); $this->setAttrib('class', $this->_cssClass); }