Twitter_Bootstrap_Form::__construct PHP Method

__construct() public method

Override the base form constructor.
public __construct ( null $options = null )
$options null
    public function __construct($options = null)
    {
        $this->_initializePrefixes();
        $this->setDecorators(array('FormElements', 'Form'));
        parent::__construct($options);
    }

Usage Example

Example #1
0
 public function __construct($options = null)
 {
     $this->_initializePrefixes();
     $this->setDisposition(self::DISPOSITION_HORIZONTAL);
     $this->setElementDecorators(array(array('FieldSize'), array('ViewHelper'), array('Addon'), array('ElementErrors'), array('Description', array('tag' => 'p', 'class' => 'help-block')), array('HtmlTag', array('tag' => 'div', 'class' => 'controls')), array('Label', array('class' => 'control-label')), array('Wrapper')));
     parent::__construct($options);
 }
All Usage Examples Of Twitter_Bootstrap_Form::__construct