Commit Graph

129 Commits

Author SHA1 Message Date
thinkphp
5e32fa2880 改进 2016-06-16 00:28:24 +08:00
thinkphp
5aec26f10a 修正miss路由的闭包定义 2016-06-16 00:22:46 +08:00
thinkphp
df99a0cf16 取消CLASS_APPEND_SUFFIX常量 使用App::$suffix 替代 使用 class_suffix 配置参数设置 use_controller_suffix 配置更改为 controller_suffix Build类run和module方法增加suffix参数 2016-06-15 23:01:10 +08:00
thinkphp
4c848c4a74 取消 APP_DEBUG 常量 改为 App::$debug 属性获取 设置调试模式 改为 app_debug 配置参数 在应用配置文件中设置 2016-06-15 16:43:31 +08:00
thinkphp
00517f9125 修正Request类的create方法 修正Route类的check方法 2016-06-14 15:33:49 +08:00
thinkphp
87a3c5577c APP_MULTI_MODULE常量改为app_multi_module配置参数 2016-06-14 08:12:14 +08:00
thinkphp
e14174fd63 改进Request类和Route类的checkDomain方法 2016-06-13 17:51:21 +08:00
thinkphp
b50bcd5298 改进Route类的alias方法 改进Url类生成支持路由别名 2016-06-09 09:00:42 +08:00
thinkphp
c4edb2e426 改进Route类 路由别名支持条件检测 2016-06-09 08:50:56 +08:00
thinkphp
0b16a5c5a3 Route类原来的alias方法更名为controller,路由增加别名方法 alias 支持使用别名简化路由定义,例如:
// 使用 user 路由别名指向 index模块的user控制器
Route::alias('user','index/user');
2016-06-08 17:50:54 +08:00
thinkphp
27bd976916 修正Route类的parseUrlParams方法 2016-06-08 13:53:49 +08:00
thinkphp
0b2359e856 改进路由到类的方法的地址写法 2016-06-07 18:46:07 +08:00
thinkphp
ee7ef63c00 修正Route类的after_behavior和before_behavior行为调用 2016-06-07 16:09:06 +08:00
thinkphp
6dd242ab4b 改进Route类 路由规则检测的时候去除开头的/ 2016-06-04 13:41:00 +08:00
thinkphp
8099a001e2 改进Response类的send方法 去除 REQUEST_METHOD IS_GET IS_POST IS_PUT IS_DELETE IS_AJAX __EXT__ 常量 由应用自己定义 2016-06-02 12:13:00 +08:00
thinkphp
12196d21b8 取消 CONTROLLER_LAYER MODEL_LAYER VIEW_LAYER VALIDATE_LAYER 常量 增加url_controller_layer 配置参数 2016-06-01 16:34:24 +08:00
thinkphp
bebe73e5a7 改进路由解析的参数绑定 2016-06-01 14:40:11 +08:00
thinkphp
dfa5143dad 增加url_param_type配置参数 用于配置操作方法的参数绑定方式 2016-06-01 14:13:21 +08:00
thinkphp
e07bb1a6fd 继续改进Route类的分组功能 2016-05-27 12:12:06 +08:00
thinkphp
1fd7d87ee4 修正Route类的路由分组 2016-05-27 12:08:03 +08:00
thinkphp
93c3fe3df7 修正路由分组一处bug 2016-05-27 11:54:57 +08:00
thinkphp
46ce08b962 改进控制器方法的参数 支持使用Request对象 自动传入当前请求对象 2016-05-27 11:06:19 +08:00
thinkphp
fa8aac7c13 修正Route类 2016-05-26 22:38:52 +08:00
thinkphp
468222c4b8 Route参数增加merge_extra_vars参数 设置是否合并最后变量 2016-05-26 22:08:50 +08:00
thinkphp
ccf4c2fdd6 改进Route类的import方法 2016-05-26 11:18:09 +08:00
thinkphp
188e64abf6 取消APP_HOOK常量 默认开启插件机制 2016-05-24 22:08:34 +08:00
thinkphp
b848abdf3b 修正单元测试 2016-05-24 18:48:26 +08:00
thinkphp
11cda0c26d 修正Route类的rescource方法 2016-05-24 18:45:49 +08:00
thinkphp
200e51c3b1 改进Route类 2016-05-24 18:30:23 +08:00
thinkphp
901631b8d5 修正Route类 2016-05-24 17:55:05 +08:00
thinkphp
e936d7dc7d 改进Route类 2016-05-24 17:02:21 +08:00
thinkphp
d4ab8576b2 修正Route类 2016-05-24 16:49:54 +08:00
thinkphp
a3fae7c6dc 改进Appe类 Request和Route类 2016-05-24 16:35:57 +08:00
thinkphp
5d2685cc85 Route注释完善 2016-05-23 12:26:57 +08:00
thinkphp
80e87d1d79 改进控制器自动搜索的后缀支持 2016-05-23 10:10:28 +08:00
thinkphp
97acdbe0a5 改进Route类parseRoute方法 2016-05-22 11:59:52 +08:00
thinkphp
990f34c24c 修正Route类一处错误 2016-05-22 11:52:46 +08:00
thinkphp
988671e991 增加controller_auto_search配置参数用于设置URL解析支持自动搜索控制器 改进Route类的parseRoute方法 2016-05-22 11:50:29 +08:00
thinkphp
e6d8a22c3b 改进Route类 2016-05-20 21:44:40 +08:00
thinkphp
277e253e44 修正Route类一处BUG 2016-05-20 19:13:11 +08:00
thinkphp
26270b2ca9 改进Route类,支持分组名使用变量 2016-05-20 18:03:36 +08:00
thinkphp
f9469f2cfc 修正Route类一处错误 2016-05-17 21:36:46 +08:00
thinkphp
3544809b1d Route类改进 支持在匹配到路由后 使用after_behavior支持路由规则重定向 2016-05-17 16:01:47 +08:00
thinkphp
891c1f99f2 改进Route的请求类型参数 支持小写传入 2016-05-16 10:41:22 +08:00
thinkphp
a4fb28a310 废除模块映射功能 改进route助手函数 Route类增加rule方法替代原register方法,原register方法更名为import方法用于导入路由配置 2016-05-11 23:00:59 +08:00
thinkphp
cbd8ea477d 修正Relation类 改进Route类的group方法 2016-05-11 22:03:26 +08:00
thinkphp
b50eeb5e7d App类改进run方法传入Request对象 便于构造自己的Request对象 2016-05-11 12:25:29 +08:00
thinkphp
9843eaf243 添加未匹配路由的规则处理 2016-05-11 11:53:07 +08:00
thinkphp
0d497d4abb 改进Route类的路由匹配后的后置行为 允许单独执行输出 并废除 response_auto_output 配置参数 2016-05-10 16:08:10 +08:00
thinkphp
c305b11d1b 改进Request类 2016-05-09 23:19:41 +08:00