public function getView() { if ($this->_view === null) { $this->_view = Yii::$app->getView(); } return $this->_view; }