SYSPATH/libraries/Router.php [ 247 ]
242 if(isset($this->rsegments[$method_segment + 1]))
243 $this->arguments = array_slice($this->rsegments, $method_segment + 1);
244 }
245
246 if($this->controller === NULL)
247 throw new QuickPHP_Exception('route.not_controller', $this->segments, 404);
248 }
249
250 /**
251 * 试图获取当前乌利使用或得到的,PATH_INFO, ORIG_PATH_INFO, PHP_ROUTER。
252 *
-
SYSPATH/QuickPHP.php [ 652 ] » QuickPHP_Router::instance()
647 * @return QuickPHP_Router 648 */ 649 public static function route() 650 { 651 if(empty(QuickPHP::$router)) 652 QuickPHP::$router = Router::instance(); 653 654 return QuickPHP::$router; 655 } 656 657 /** -
SYSPATH/QuickPHP.php [ 402 ] » QuickPHP::route()
397 if(QuickPHP::$_init != NULL) 398 { 399 try 400 { 401 // 加载控制器文件,并反射这个控制器 402 require_once QuickPHP::route()->controller_path; 403 $class = new ReflectionClass(ucfirst(QuickPHP::route()->get('controller')) . '_Controller'); 404 } 405 catch(ReflectionException $e) 406 { 407 throw new QuickPHP_Exception('route.not_controller', QuickPHP::route()->segments); -
APPPATH/bootstrap.php [ 57 ] » QuickPHP->dispatch()
52 'caching' => TRUE, // 开启高速缓存 53 'frontend' => '', // 入口文件名(默认为index.php) 54 'domain' => $_SERVER['SERVER_NAME'] // 网站域名 55 ); 56 57 QuickPHP::instance($setting)->dispatch(); -
DOCROOT/index.php [ 42 ] » require(arguments)
0String(51) "/home/www/manhuashu.net/www/protected/bootstrap.php"37 /** 系统常量 QuickPHP 框架 framework 目录路径 */ 38 define('SYSPATH', str_replace("\\", "/", realpath($framework)) . '/'); 39 /** 系统常量 APPPATH,protected 目录路径 */ 40 define('APPPATH', str_replace("\\", "/", realpath($protected)) . '/'); 41 /** 载入框架,进行调度 */ 42 require APPPATH . 'bootstrap' . EXT;