Пример #1
0
 public static function run()
 {
     spl_autoload_register(array(__CLASS__, 'autoload'));
     $request = new \nx\core\Request();
     $dispatcher = new \nx\core\Dispatcher();
     $dispatcher->handle($request, self::getRoutes());
 }
Пример #2
0
<?php

require dirname(__DIR__) . '/config/bootstrap.php';
$request = new \nx\core\Request();
$dispatcher = new \nx\core\Dispatcher();
$dispatcher->handle($request, \app\config\Routes::get_routes());