public static function router($directory, $config = 'config.yml')
    {
        $request = Server::get('PHP_SELF');
        $root = Server::get('DOCUMENT_ROOT');
        $file = $root . $request;
        if(file_exists($file) && !is_dir($file))
        {
            return false;
        }
        else
        {
            Bootstrap::start($directory, $config);
            return true;
        }

    }
public static function router($directory, $config = 'config.yml')
    {
        $request = Server::get('PHP_SELF');
        $root = Server::get('DOCUMENT_ROOT');
        $file = $root . $request;
        if(file_exists($file) && !is_dir($file))
        {
            return false;
        }
        else
        {
            Bootstrap::start($directory, $config);
            return true;
        }

    }
public static function router ( $ directory , $ config = 'config.yml' ) { $ request = Server :: get ( 'PHP_SELF' ) ; $ root = Server :: get ( 'DOCUMENT_ROOT' ) ; $ file = $ root . $ request ; if ( file_exists ( $ file ) && ! is_dir ( $ file ) ) { return false ; } else { Bootstrap :: start ( $ directory , $ config ) ; return true ; } }
Simple script router

@param $directory
@param string $config
@return bool
Simple script router