예제 #1
0
파일: Router.php 프로젝트: Calmacil/GotCm
 /**
  * Instanciator for the singleton.
  *
  * @param string $routes_file
  * @return Router
  */
 public static function getInstance($routes_file = null)
 {
     if (!self::$_instance) {
         self::$_instance = new Router();
         if ($routes_file) {
             self::$_instance->load($routes_file);
         }
     }
     return self::$_instance;
 }