public function getViewPath() { if ($this->viewPath !== null) { return \Yii::getAlias($this->viewPath) . '/' . $this->getControllerID(); } else { return parent::getViewPath(); } }