src/Whoops/Handler/PlainTextHandler.php
protected function root()
    {
        if(isset($_GET['_framework_url_']))
        {
            $url = $_GET['_framework_url_'];
        }
        else return false;

        $parts = explode('/', $url);
        $count = count($parts)-2;
        //
        $path = $parts > 1 ? '../' : '';

        for ($i=0; $i <$count; $i++) 
        { 
            $path .= '../';
        }

        \Vinala\Kernel\Foundation\Application::$path = $path;
        return $path;
    }
protected function root()
    {
        if(isset($_GET['_framework_url_']))
        {
            $url = $_GET['_framework_url_'];
        }
        else return false;

        $parts = explode('/', $url);
        $count = count($parts)-2;
        //
        $path = $parts > 1 ? '../' : '';

        for ($i=0; $i <$count; $i++) 
        { 
            $path .= '../';
        }

        \Vinala\Kernel\Foundation\Application::$path = $path;
        return $path;
    }
protected function root ( ) { if ( isset ( $ _GET [ '_framework_url_' ] ) ) { $ url = $ _GET [ '_framework_url_' ] ; } else return false ; $ parts = explode ( '/' , $ url ) ; $ count = count ( $ parts ) - 2 ; // $ path = $ parts > 1 ? '../' : '' ; for ( $ i = 0 ; $ i < $ count ; $ i ++ ) { $ path .= '../' ; } \ Vinala \ Kernel \ Foundation \ Application :: $ path = $ path ; return $ path ; }
Set the app root

@param string $url
@return string
Set the app root