Example #1
0
 public function __construct($view, $params = null, $model = null)
 {
     parent::__construct($model);
     //
     $this->view = $view;
     $this->params = $params;
 }
Example #2
0
 public function __construct($title, $function_call, $model)
 {
     parent::__construct($model);
     //
     $this->title = $title;
     //
     $function_call($this);
 }
Example #3
0
 public function __construct($name, $label, $model)
 {
     //
     parent::__construct($model);
     //
     $this->addAttribute(['class' => 'form-control']);
     //
     $this->name = $name;
     $this->label = $label;
 }