public function init() { parent::init(); if ($this->view === null) { $this->view = Yii::$app->getView(); } }