public function run()
    {
        $router = new Router();
        $cache = new Cache();
        if (file_exists('../Routes/Routes.php')) {
            $routeFile = '../Routes/Routes.php';
        } elseif (file_exists('Routes/Routes.php')) {
            $routeFile = 'Routes/Routes.php';
        } else {
            throw new \Exception('Error while loading Route.php file', 500);
        }
        if (__config()->config->router_cache === true) {
            if (!$cache->setAdapter('file')->has('router')) {
                require_once $routeFile;
                $router->cacheRouters();
                $router->dispatch(new Request());
            } else {
                $router->routes = $router->loadCache();
                $router->dispatch(new Request());
            }
        } else {
            require_once $routeFile;
            $router->cacheRouters();
            $router->dispatch(new Request());
        }
    }
public function run()
    {
        $router = new Router();
        $cache = new Cache();
        if (file_exists('../Routes/Routes.php')) {
            $routeFile = '../Routes/Routes.php';
        } elseif (file_exists('Routes/Routes.php')) {
            $routeFile = 'Routes/Routes.php';
        } else {
            throw new \Exception('Error while loading Route.php file', 500);
        }
        if (__config()->config->router_cache === true) {
            if (!$cache->setAdapter('file')->has('router')) {
                require_once $routeFile;
                $router->cacheRouters();
                $router->dispatch(new Request());
            } else {
                $router->routes = $router->loadCache();
                $router->dispatch(new Request());
            }
        } else {
            require_once $routeFile;
            $router->cacheRouters();
            $router->dispatch(new Request());
        }
    }
public function run ( ) { $ router = new Router ( ) ; $ cache = new Cache ( ) ; if ( file_exists ( '../Routes/Routes.php' ) ) { $ routeFile = '../Routes/Routes.php' ; } elseif ( file_exists ( 'Routes/Routes.php' ) ) { $ routeFile = 'Routes/Routes.php' ; } else { throw new \ Exception ( 'Error while loading Route.php file' , 500 ) ; } if ( __config ( ) -> config -> router_cache === true ) { if ( ! $ cache -> setAdapter ( 'file' ) -> has ( 'router' ) ) { require_once $ routeFile ; $ router -> cacheRouters ( ) ; $ router -> dispatch ( new Request ( ) ) ; } else { $ router -> routes = $ router -> loadCache ( ) ; $ router -> dispatch ( new Request ( ) ) ; } } else { require_once $ routeFile ; $ router -> cacheRouters ( ) ; $ router -> dispatch ( new Request ( ) ) ; } }
Run the Zest Framework.

@since 2.0.0

@return bool
Run the Zest Framework .