protected function getViewPath(string $view): string
    {
        if (DS != '/') {
            $view = str_replace('/', DS, $view);
        }

        $pos = strpos($view, ':');
        if ($pos === false) {
            return $this->viewPath . $view . '.phtml';
        } else {
            return dirname(substr($this->viewPath, 0, -1)) . DS . 'modules' . DS . substr($view, 0, $pos) . DS . 'views' . DS . substr($view, $pos + 1) . '.phtml';
        }
    }