src/Koldy/Response/View.php
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';
        }
    }
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';
        }
    }
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' ; } }
Get the path of the view

@param string $view

@return string
Get the path of the view