Exemplo n.º 1
0
 /**
  * Inisialisasi routing engine
  * 
  */
 public function initRouter()
 {
     $routeCollections = (include 'wy_config/routes.php');
     $basePath = dirname($_SERVER['SCRIPT_NAME']);
     if (in_array($basePath, array('/', '\\'))) {
         $basePath = '';
     }
     $router = new AltoRouter($routeCollections, $basePath);
     WY_Registry::set('router', $router);
 }