public function getView()
    {
        $module = \Yii::$app->controller->module;

        if (method_exists($module, 'getView')) {
            return $module->getView();
        }

        return parent::getView();
    }
public function getView()
    {
        $module = \Yii::$app->controller->module;

        if (method_exists($module, 'getView')) {
            return $module->getView();
        }

        return parent::getView();
    }
public function getView ( ) { $ module = \ Yii :: $ app -> controller -> module ; if ( method_exists ( $ module , 'getView' ) ) { return $ module -> getView ( ) ; } return parent :: getView ( ) ; }
Give ability of configure view to the module class.

@return \yii\base\View|\yii\web\View
Give ability of configure view to the module class .