ThinkPHP/Mode/ApiDispatcher.class.php

Classes

Dispatcher ThinkPHP API模式的Dispatcher类 完成URL解析、路由和调度

Constants

APP_DOMAIN

APP_DOMAIN = $_SERVER['HTTP_HOST']

SUB_DOMAIN

SUB_DOMAIN = $subDomain

BIND_MODULE

BIND_MODULE = array_shift($array)

BIND_CONTROLLER

BIND_CONTROLLER = $controller

MODULE_PATHINFO_DEPR

MODULE_PATHINFO_DEPR = $depr

__INFO__

__INFO__ = trim($_SERVER['PATH_INFO'], '/')

__EXT__

__EXT__ = strtolower(pathinfo($_SERVER['PATH_INFO'], PATHINFO_EXTENSION))

MODULE_NAME

MODULE_NAME = defined('BIND_MODULE') ? BIND_MODULE : self::getModule($varModule)

MODULE_PATH

MODULE_PATH = APP_PATH . MODULE_NAME . '/'

CONTROLLER_NAME

CONTROLLER_NAME = defined('BIND_CONTROLLER') ? BIND_CONTROLLER : self::getController($varController, $urlCase)

ACTION_NAME

ACTION_NAME = defined('BIND_ACTION') ? BIND_ACTION : self::getAction($varAction, $urlCase)

MODULE_ALIAS

MODULE_ALIAS = strtolower($module)