public function init() { parent::init(); // $this->roles = 'webadmin'; }
/** * @inheritdoc */ public function init() { parent::init(); $this->db = Instance::ensure($this->db, 'yii\\db\\Connection'); }
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')); }