/** * 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'); }
/** * Load routes from the configuration files. */ protected static function _load_routes() { if (is_null(self::$routes)) { self::$routes = Config::get('routes.routes', array()); } }