예제 #1
0
파일: uri.php 프로젝트: enormego/EightPHP
 /**
  * Constructor.
  *
  * @return  void
  */
 public function __construct()
 {
     // Only run the constructor once
     if (self::$instance !== nil) {
         return;
     }
     // Create segment array from the URI
     self::$segments = explode('/', Router::$current_uri);
     // Create a singleton
     self::$instance = $this;
     Eight::log('debug', 'URI Library initialized');
 }
예제 #2
0
파일: uri.php 프로젝트: jmhobbs/NodeRegator
 /**
  * Load routes from the configuration files.
  */
 protected static function _load_routes()
 {
     if (is_null(self::$routes)) {
         self::$routes = Config::get('routes.routes', array());
     }
 }