init() public method

Initializes the view component.
public init ( )
 public function init()
 {
     parent::init();
     //        $this->roles = 'webadmin';
 }
Beispiel #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->db = Instance::ensure($this->db, 'yii\\db\\Connection');
 }
Beispiel #3
0
 public function init()
 {
     parent::init();
     $this->theme->pathMap['@app/views'] = array_merge((array) $this->theme->pathMap['@app/views'], (array) Yii::$app->get('config')->rawItem('views'));
 }