shuipf
13ffe40a44
优化set修改器,$data不完整
...
经常遇到的坑是:
比如新增 a b c d 4个字段内容,进行新增操作调用save方法。由于save对$data是进行遍历调用修改器,导致当前对象的$this->data并不完整。例如b字段是和d字段有一定关联关系的,因为是foreach的方式,导致执行到d的修改器时,压根在$data参数获取不到d的值!,虽然可以在修改器里,直接获取外部提交的变量,但这种方式,不完美!如果我不是外部获取的数据呢?那岂不是没辙了!
2016-05-13 10:42:43 +08:00
thinkphp
792f146261
修正Model 增加时间戳字段自动识别
2016-05-13 09:54:26 +08:00
thinkphp
c3af0bb1c4
模型的时间戳自动写入支持timestamp类型字段
2016-05-12 21:53:54 +08:00
thinkphp
67cebd8ca1
修正traits\controller/Jump.php
2016-05-12 09:45:07 +08:00
thinkphp
49c899acc5
调整 error和success方法的参数顺序 和原来保持一致
2016-05-12 08:15:05 +08:00
thinkphp
a4fb28a310
废除模块映射功能 改进route助手函数 Route类增加rule方法替代原register方法,原register方法更名为import方法用于导入路由配置
2016-05-11 23:00:59 +08:00
thinkphp
ee837df7c9
修正事务
2016-05-11 22:09:55 +08:00
thinkphp
cbd8ea477d
修正Relation类 改进Route类的group方法
2016-05-11 22:03:26 +08:00
thinkphp
15e01901fb
修正Query类一处错误
2016-05-11 18:14:16 +08:00
thinkphp
7f385217b9
改进response类
2016-05-11 14:04:56 +08:00
thinkphp
03b87a9eb0
改进App类 修正单元测试
2016-05-11 12:45:06 +08:00
thinkphp
79c381353d
注释改进
2016-05-11 12:34:04 +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
5a7840dfa8
改进Response类send方法
2016-05-11 10:12:01 +08:00
thinkphp
861328c797
改进App类
2016-05-11 10:03:50 +08:00
thinkphp
8e1cd9c51f
改进Response类 改进traits\controller\Jump 添加response助手函数
2016-05-11 07:51:41 +08:00
shenfakuan
fafcbb049e
修改查询后直接save update_time 等时间字段不更新bug
2016-05-10 17:14:13 +08:00
thinkphp
0d497d4abb
改进Route类的路由匹配后的后置行为 允许单独执行输出 并废除 response_auto_output 配置参数
2016-05-10 16:08:10 +08:00
thinkphp
46009e3c2e
改进Model类
2016-05-10 15:17:29 +08:00
thinkphp
822d9a235b
改进Config类支持配置CONF_EXT常量
2016-05-10 14:39:47 +08:00
thinkphp
85fe5d89fe
修正Pivot类
2016-05-10 14:28:32 +08:00
thinkphp
6cec513b10
修正Url类路由分组的情况
2016-05-10 11:57:35 +08:00
thinkphp
054af31455
改进异常模板 和 修正 重复的页面trace输出
2016-05-10 11:20:11 +08:00
thinkphp
16355d9aca
修正Request
2016-05-10 10:50:59 +08:00
thinkphp
4a3ddd4353
改进Input类和request类的file方法
2016-05-10 10:49:32 +08:00
thinkphp
c305b11d1b
改进Request类
2016-05-09 23:19:41 +08:00
尘缘
5407d18f80
Merge branch 'master' of https://github.com/top-think/framework
2016-05-09 19:37:38 +08:00
尘缘
6d46bf3276
部分重构Redisd驱动
2016-05-09 19:37:02 +08:00
yunwuxin
bd8d09d8e8
修正命令行hasOption方法
2016-05-09 18:25:50 +08:00
尘缘
3868b6e771
Merge branch 'master' of https://github.com/top-think/framework
2016-05-09 18:06:52 +08:00
yunwuxin
4600c3179e
修正build命令
2016-05-09 17:59:22 +08:00
yunwuxin
efcda39795
修正分页类
2016-05-09 17:32:03 +08:00
尘缘
9468a60d74
Merge branch 'master' of https://github.com/top-think/framework
2016-05-09 16:35:46 +08:00
yunwuxin
67fd89cace
修正分页类
2016-05-09 12:32:10 +08:00
thinkphp
4633f240d0
query类增加fetchClass方法用于指定返回数据集类型
2016-05-09 12:22:34 +08:00
thinkphp
e7839557c6
驱动改进
2016-05-09 12:01:41 +08:00
thinkphp
ae908199eb
数据库配置参数增加resultset_type 用于设置数据集的返回类型
2016-05-09 11:56:22 +08:00
thinkphp
144a6132e6
Db类增加RESULTSET_ARRAY RESULTSET_COLLECTION 和 RESULTSET_CLASS 常量
...
数据库Connection类增加resultSetType属性定义 支持设置数据集返回类型
2016-05-09 11:45:00 +08:00
thinkphp
6723257a4b
修正Query类的find方法一处警告错误
2016-05-09 10:01:00 +08:00
尘缘
2fcd752d33
redisd handler方法允许指定主从节点
2016-05-08 23:43:47 +08:00
尘缘
fb420d5acf
redisd get方法允许指定主从节点
2016-05-08 23:32:18 +08:00
尘缘
cb7f4e8d57
修复一处redisd master 返回的错误对象
2016-05-08 23:29:06 +08:00
尘缘
dccca49419
Merge branch 'master' of https://github.com/top-think/framework
2016-05-08 23:21:57 +08:00
thinkphp
6e9a18955b
修正Model类
2016-05-08 22:42:43 +08:00
thinkphp
6136572b6e
改进model类
2016-05-08 22:24:40 +08:00
thinkphp
cdfe0a5e96
Model类的get和all方法支持直接使用数组条件查询 改进relation的参数
2016-05-08 22:20:17 +08:00
尘缘
481f05a162
Merge branch 'master' of https://github.com/top-think/framework
2016-05-08 13:21:14 +08:00
yunwuxin
6ca3dad850
修正模板标签解析
...
新增几个常用的数组处理方法
2016-05-08 12:36:08 +08:00
尘缘
caf86af6b2
fix Undefined variable: value
2016-05-08 11:10:23 +08:00