Exemple #1
0
 function __construct($options = null)
 {
     // Set the element decorators
     $this->_elementDecorators = array('ViewHelper', array('Description', array('tag' => 'p', 'class' => 'help-block')), 'Errors', array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'controls')), array('Label', array('class' => 'control-label')), array(array('row' => 'HtmlTag'), array('tag' => 'div', 'class' => 'control-group')));
     // Set the decorators
     $this->_decorators = array(array('BootstrapDescription', array('escape' => false)), 'BootstrapFormErrorMessages', 'FormElements', 'Form');
     // Call the constructor of the parent object
     parent::__construct($options);
     // Set the decorators
     $this->setDecorators(array(array('BootstrapDescription', array('escape' => false)), 'BootstrapFormErrorMessages', 'FormElements', 'Form'));
 }
Exemple #2
0
 /**
  * Constructor
  *
  * @param array $options
  */
 function __construct($options = null)
 {
     // Call the constructor of the parent object
     parent::__construct($options);
     $this->setDecorators(array(array('JqueryDescription', array('escape' => false)), 'JqueryFormErrorMessages', 'FormElements', array('HtmlTag', array('tag' => 'dl', 'class' => 'zend_form')), 'Form'));
 }