Example #1
0
 static function init()
 {
     //加载配置文件
     self::config();
     //url请求处理
     tcphp\url::parse();
     //获得mvc参数
     self::$module = self::module();
     self::$control = self::control();
     self::$action = self::action();
     defined("MODULE_NAME") or define("MODULE_NAME", self::$module);
     defined("CONTROLLER_NAME") or define("CONTROLLER_NAME", self::$control);
     defined("ACTION_NAME") or define("ACTION_NAME", self::$action);
 }