public function getViewPath() { if ($this->module instanceof Module && $this->module->useAppViewPath) { return '@app/views/' . $this->module->id . '/' . $this->id; } return parent::getViewPath(); }