Пример #1
0
 public static function load()
 {
     session_start();
     require ROOT . '/app/Autoloader.php';
     App\Autoloader::register();
     require ROOT . '/core/Autoloader.php';
     Core\Autoloader::register();
     //regle de routing
     Router::prefix(PREFIX, 'admin');
     Router::connect('', 'pages/show/1');
     /*Router::connect(':id/categories.html','posts/category/id:([0-9]+)');
       Router::connect('blog/*','posts/*');
       Router::connect('cgv.html','pages/show/1');*/
     Router::connect('login.html', 'users/login');
 }