Skip to content

Instantly share code, notes, and snippets.

@Thomas-Gelf
Created October 27, 2016 15:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Thomas-Gelf/68b08fb48feed85d8fe46d76cacc9dd6 to your computer and use it in GitHub Desktop.
Save Thomas-Gelf/68b08fb48feed85d8fe46d76cacc9dd6 to your computer and use it in GitHub Desktop.
Constructor for the test form
public function __construct($options = null)
{
if (is_array($options)) {
$this->setOptions($options);
} elseif ($options instanceof Zend_Config) {
$this->setConfig($options);
}
$this->init();
$this->loadDefaultDecorators();
$this->setMethod('post');
$this->setAction('director/test/form);
$this->createIdElement();
$this->setDecorators(
array(
'Description',
array('FormErrors', array('onlyCustomFormErrors' => true)),
'FormElements',
'Form'
)
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment