Commit Graph

3363 Commits

Author SHA1 Message Date
thinkphp
90b0da7bed 改进Model类setAttr方法 2016-12-07 15:33:15 +08:00
thinkphp
73c47acef8 改进Query类和Builder类 2016-12-07 12:14:31 +08:00
thinkphp
e0d23618b6 改进Query类的column方法 2016-12-07 11:18:04 +08:00
thinkphp
024f75c846 记录当前的泛域名到路由变量中 变量名为__domain__ 2016-12-07 08:13:15 +08:00
thinkphp
0428e1b120 改进Request类的file方法 2016-12-07 07:47:35 +08:00
thinkphp
bf3797deda 修正闭包查询 2016-12-07 07:41:48 +08:00
thinkphp
cc573e4dba 改进Model类save方法写入对主键值的判断 2016-12-07 07:27:04 +08:00
thinkphp
4780d194b5 改进数据库操作join自身后出错的问题 2016-12-07 07:16:50 +08:00
thinkphp
0788e048a7 改进Response类的send方法 当为重定向的时候不清空当次有效数据 2016-12-06 16:42:32 +08:00
thinkphp
7ce4d935f6 改进confirm验证规则 支持 password 及 password_confirm 自动规则识别 2016-12-06 14:23:08 +08:00
thinkphp
1cff11b9cc 改进自定义错误信息的判断 2016-12-06 14:07:08 +08:00
thinkphp
4ebd16f8ef 增加Validate类自定义验证错误信息的替换规则 2016-12-06 13:59:37 +08:00
ThinkPHP
81a8acb656 Merge pull request #383 from lyaohe/master
error方法在ajax请求,默认返回url改为空
2016-12-06 08:17:43 +08:00
thinkphp
3e53f0f452 修正Template类 2016-12-06 08:13:27 +08:00
thinkphp
b7f7a8a2a7 改进多表更新的字段不存在问题 2016-12-06 08:07:09 +08:00
thinkphp
57fe06a11b 改进Model类的useGlobalScope方法 2016-12-06 07:52:47 +08:00
thinkphp
47ad3507d5 改进Template类parseTemplateFile方法 2016-12-06 07:50:08 +08:00
thinkphp
32c2f5799b 修正子查询作为表名查询的问题 2016-12-05 16:48:18 +08:00
thinkphp
84f9ffab46 改进命令行下的日志记录 2016-12-05 16:36:50 +08:00
thinkphp
7f3fe01504 改进Validate类的getRuleMsg方法 2016-12-05 16:25:46 +08:00
thinkphp
405825ff8a Model类增加resultSetType属性 用于指定模型查询的数据集对象(默认为空返回数组) Db类查询不再支持设置自定义数据集对象(只能使用数组或者think\Collection) 2016-12-05 16:24:02 +08:00
thinkphp
30077757bd Model类增加toCollection方法 用于转换数据集对象 2016-12-05 12:12:33 +08:00
thinkphp
1f53806272 注释完善 2016-12-05 12:01:35 +08:00
thinkphp
5037c64f53 改进关联模型 2016-12-05 11:55:04 +08:00
thinkphp
1d2b44adc8 修正Query的select方法的关联预载入 2016-12-05 10:55:50 +08:00
thinkphp
d11e4aea10 关联模型架构调整 2016-12-05 08:42:08 +08:00
thinkphp
670b7d13a8 修正 2016-12-02 22:24:28 +08:00
thinkphp
65f13177c2 改进模板引擎类parseTemplateFile方法 2016-12-02 22:14:57 +08:00
thinkphp
2061588c49 改进Validate类的field属性设置 2016-12-02 19:12:49 +08:00
lyaohe
39ea6f812c error方法在ajax请求默认返回url为空 2016-12-02 15:11:34 +08:00
lyaohe
82888cfe53 error方法在ajax请求,默认返回url为空 2016-12-02 11:53:09 +08:00
thinkphp
4a80099a51 部署模式下简化日志记录 2016-12-01 18:32:28 +08:00
thinkphp
b62175c34d 多态关联支持预载入查询 2016-12-01 17:19:43 +08:00
thinkphp
7ef95130c1 修正关联一处问题 2016-12-01 12:15:17 +08:00
thinkphp
1afdde40e3 改进多态关联的morphTo方法 如果不传入参数默认用当前定义的方法名作为字段前缀 2016-12-01 11:48:01 +08:00
thinkphp
77d2731892 修正关联多对多一处错误 2016-12-01 11:28:49 +08:00
thinkphp
a02c7321bb 改进关联多对多的查询 增加getModel方法 2016-12-01 10:50:56 +08:00
thinkphp
099c977b0a morphTo支持多态类型字段别名定义 2016-11-30 22:52:42 +08:00
thinkphp
7983db9587 多态一对多关联方法参数调整 2016-11-30 22:37:38 +08:00
thinkphp
7f527c256e 关联模型支持多态一对多关联 2016-11-30 19:52:58 +08:00
thinkphp
61462a628e 改进多对多查询 2016-11-30 17:11:38 +08:00
thinkphp
6f58a26097 Merge branch 'master' of https://github.com/top-think/framework 2016-11-30 15:33:48 +08:00
thinkphp
211b28706f 增加debug日志类型 仅限调试模式记录 2016-11-30 15:33:14 +08:00
thinkphp
2d4b1dda9c 请求缓存支持模块单独开启 2016-11-29 22:08:12 +08:00
ThinkPHP
fd34d98866 Merge pull request #375 from supermp/master
让Request支持json方式的POST
2016-11-29 16:04:26 +08:00
thinkphp
8b80794b39 Validate类架构方法增加field参数 用于设置验证字段的描述 2016-11-29 16:00:23 +08:00
thinkphp
aed8be7150 改进Model的一处数据比较 2016-11-29 15:53:33 +08:00
thinkphp
da3f737ccc 改进App类invokeMethod方法 2016-11-29 15:15:43 +08:00
quzhe
0962b21232 让Request支持json方式的POST
目前RESTful API用json方式提交的很多
目前PUT/PATCH/DELETE方法均可以支持json,但POST方法不能,这不对等
其实更好的方法是判断header里content-type是否为application/json,但因为目前header属性采用的是懒加载,所以暂时沿用目前的字符串判断
2016-11-29 11:40:02 +08:00
thinkphp
fedfd9c857 修正 2016-11-28 23:24:48 +08:00