src/Koldy/Response/View.php
public static function exists(string $view): bool
    {
        $pos = strpos($view, ':');

        if ($pos === false) {
            $path = Application::getViewPath() . $view . '.phtml';
        } else {
            $path = dirname(substr(Application::getViewPath(), 0, -1)) . DS . 'modules' . DS . substr($view, 0, $pos) . DS . 'views' . DS . substr($view, $pos + 1) . '.phtml';
        }


        return is_file($path);
    }
public static function exists(string $view): bool
    {
        $pos = strpos($view, ':');

        if ($pos === false) {
            $path = Application::getViewPath() . $view . '.phtml';
        } else {
            $path = dirname(substr(Application::getViewPath(), 0, -1)) . DS . 'modules' . DS . substr($view, 0, $pos) . DS . 'views' . DS . substr($view, $pos + 1) . '.phtml';
        }


        return is_file($path);
    }
public static function exists ( string $ view ) : bool { $ pos = strpos ( $ view , ':' ) ; if ( $ pos === false ) { $ path = Application :: getViewPath ( ) . $ view . '.phtml' ; } else { $ path = dirname ( substr ( Application :: getViewPath ( ) , 0 , - 1 ) ) . DS . 'modules' . DS . substr ( $ view , 0 , $ pos ) . DS . 'views' . DS . substr ( $ view , $ pos + 1 ) . '.phtml' ; } return is_file ( $ path ) ; }
Does view exists or not in main view path

@param string $view

@return boolean
Does view exists or not in main view path