// 解析模块
$module = $this->app->config('app_multi_module') ? array_shift($path) : null;
if ($this->param['auto_search']) {
$controller = $this->autoFindController($module, $path);
} else {
// 解析控制器
$controller = !empty($path) ? array_shift($path) : null;
if ($controller && !preg_match('/^[A-Za-z][\w|\.]*$/', $controller)) {
throw new HttpException(404, 'controller not exists:' . $controller);
}
}
// 解析操作
$action = !empty($path) ? array_shift($path) : null;
// 解析额外参数
if ($path) {
if ($this->app['config']->get('url_param_type')) {
/product/2012-6-15/132_html |
USER | ensouthdrive |
HOME | /home/wwwroot/ensouthdrive |
SCRIPT_NAME | /index.php |
REQUEST_URI | /product/2012-6-15/132.html |
QUERY_STRING | /product/2012-6-15/132.html |
REQUEST_METHOD | GET |
SERVER_PROTOCOL | HTTP/1.0 |
GATEWAY_INTERFACE | CGI/1.1 |
REDIRECT_QUERY_STRING | /product/2012-6-15/132.html |
REDIRECT_URL | /product/2012-6-15/132.html |
REMOTE_PORT | 49316 |
SCRIPT_FILENAME | /home/wwwroot/ensouthdrive/wwwroot/index.php |
SERVER_ADMIN | [no address given] |
CONTEXT_DOCUMENT_ROOT | /home/wwwroot/ensouthdrive/wwwroot |
CONTEXT_PREFIX | |
REQUEST_SCHEME | http |
DOCUMENT_ROOT | /home/wwwroot/ensouthdrive/wwwroot |
REMOTE_ADDR | 3.238.254.78 |
SERVER_PORT | 80 |
SERVER_ADDR | 127.0.0.1 |
SERVER_NAME | en.southdrive.net |
SERVER_SOFTWARE | Apache |
SERVER_SIGNATURE | |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
HTTP_USER_AGENT | claudebot |
HTTP_ACCEPT | */* |
HTTP_CONNECTION | close |
HTTP_HOST | en.southdrive.net |
HTTP_X_REAL_IP | 3.238.254.78 |
proxy-nokeepalive | 1 |
REDIRECT_STATUS | 200 |
FCGI_ROLE | RESPONDER |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1711727019.9287 |
REQUEST_TIME | 1711727019 |
PATH_INFO | /product/2012-6-15/132.html |
APP_PATH | /home/wwwroot/ensouthdrive/wwwroot/application/ |
__ROOT__ |