luya\web\Controller::getViewPath PHP Method

getViewPath() public method

Override the default Yii controller getViewPath method. To define the template folders in where the templates are located. Why? Basically some modules needs to put theyr templates inside of the client repository.
public getViewPath ( ) : string
return string
    public function getViewPath()
    {
        if ($this->module instanceof Module && $this->module->useAppViewPath) {
            return '@app/views/' . $this->module->id . '/' . $this->id;
        }
        return parent::getViewPath();
    }