Created
October 27, 2016 15:47
-
-
Save Thomas-Gelf/68b08fb48feed85d8fe46d76cacc9dd6 to your computer and use it in GitHub Desktop.
Constructor for the test form
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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