yii\base\Controller::getView PHP 메소드

getView() 공개 메소드

The Controller::render, Controller::renderPartial and Controller::renderFile methods will use this view object to implement the actual view rendering. If not set, it will default to the "view" application component.
public getView ( ) : View | View
리턴 View | View the view object that can be used to render views or view files.
    public function getView()
    {
        if ($this->_view === null) {
            $this->_view = Yii::$app->getView();
        }
        return $this->_view;
    }