Nextras\Forms\Rendering\Bs3FormRenderer::__construct PHP Метод

__construct() публичный Метод

public __construct ( )
    public function __construct()
    {
        $this->wrappers['controls']['container'] = null;
        $this->wrappers['pair']['container'] = 'div class=form-group';
        $this->wrappers['pair']['.error'] = 'has-error';
        $this->wrappers['control']['container'] = 'div class=col-sm-9';
        $this->wrappers['label']['container'] = 'div class="col-sm-3 control-label"';
        $this->wrappers['control']['description'] = 'span class=help-block';
        $this->wrappers['control']['errorcontainer'] = 'span class=help-block';
        $this->wrappers['error']['container'] = null;
        $this->wrappers['error']['item'] = 'div class="alert alert-danger"';
    }

Usage Example

Пример #1
0
 public function __construct(FileTemplate $template = NULL)
 {
     parent::__construct();
     $this->template = $template;
     $this->wrappers['control']['container'] = 'div class="col-sm-9 controls"';
     $this->wrappers['control']['errorcontainer'] = 'span class="help-block error"';
 }