Skip to content

Instantly share code, notes, and snippets.

@robzienert
Created June 21, 2010 17:46
Show Gist options
  • Select an option

  • Save robzienert/447207 to your computer and use it in GitHub Desktop.

Select an option

Save robzienert/447207 to your computer and use it in GitHub Desktop.
class Prpl_Form extends Zend_Form
{
/**
* Init
*
*/
public function init()
{
$this->addPrefixPath('Prpl_Form', 'Prpl/Form');
$this->addElementPrefixPath('Prpl', 'Prpl');
$this->addElementPrefixPath('Prpl_Validate_', 'Prpl/Validate/', Zend_Form_Element::VALIDATE);
$this->setDefaultDisplayGroupClass('Prpl_Form_DisplayGroup');
// Set standard decorators
$this->setDecorators(array(
'FormElements',
array('Description', array('placement' => 'prepend')),
'Form'
));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment