yii\apidoc\templates\html\ApiRenderer::getView PHP Method

getView() public method

public getView ( ) : View
return yii\web\View the view instance
    public function getView()
    {
        if ($this->_view === null) {
            $this->_view = new View();
            $assetPath = Yii::getAlias($this->_targetDir) . '/assets';
            if (!is_dir($assetPath)) {
                mkdir($assetPath);
            }
            $this->_view->assetManager = new AssetManager(['basePath' => $assetPath, 'baseUrl' => './assets']);
        }
        return $this->_view;
    }