Commit Graph

3425 Commits

Author SHA1 Message Date
thinkphp
55ca76ccae 改进Loader类的model controller 和 validate方法 支持直接传入类名实例化 2016-12-20 22:36:17 +08:00
thinkphp
6d85645d79 改进路由到控制器类的方法 对 默认渲染模板的影响 2016-12-20 16:03:41 +08:00
thinkphp
c83020f387 改进 2016-12-20 14:53:17 +08:00
thinkphp
8b463414a4 改进unique验证规则 2016-12-20 14:50:15 +08:00
thinkphp
2ee49f5dcb unique验证规则支持指定完整模型类 并且默认会优先检测模型类是否存在 不存在则检测数据表 2016-12-20 14:41:27 +08:00
thinkphp
c695397733 版本更新 v5.0.4 2016-12-20 08:28:50 +08:00
thinkphp
573eefba3d 模板渲染支持直接渲染根路径下面的模板 例如 $this->fetch('/name'); 2016-12-19 15:18:51 +08:00
thinkphp
c197b1f040 改进Validate 2016-12-19 09:00:05 +08:00
thinkphp
33b9ba4a9c 改进Validate 2016-12-19 08:55:11 +08:00
thinkphp
efd34d53fd 改进Hook类exec方法支持指定类的方法执行 包括静态方法 2016-12-18 09:44:26 +08:00
thinkphp
48a1cf0699 Merge branch 'master' of https://github.com/top-think/framework 2016-12-18 08:21:59 +08:00
thinkphp
e2ab86b962 改进Hook类 改进Model类时间戳写入 2016-12-18 08:21:35 +08:00
ThinkPHP
7402450390 Merge pull request #312 from chunice/master
创建Db类单元测试
2016-12-17 12:05:10 +08:00
chunice
157c26a7aa 创建Db类单元测试 2016-12-16 19:41:11 +08:00
thinkphp
4d21d3c953 改进session驱动的read方法返回值类型 2016-12-16 18:04:11 +08:00
thinkphp
1aa60c7d71 修正socket日志驱动 2016-12-16 16:03:04 +08:00
thinkphp
0bef3d8944 单元测试修正 2016-12-16 14:44:52 +08:00
thinkphp
3cfd718c38 改进命令行模式下 日志写入出错的问题 2016-12-16 14:34:44 +08:00
thinkphp
47a0cf5b06 Merge branch 'master' of https://github.com/top-think/framework 2016-12-15 12:30:32 +08:00
thinkphp
ce590c2e53 改进Request类的accept方法 2016-12-15 12:29:51 +08:00
thinkphp
0fe0edb80e 回退一个App类的更赶 2016-12-14 21:57:58 +08:00
thinkphp
d96c39cb1c 验证类的验证方法支持第五个title参数传入 2016-12-14 16:57:15 +08:00
thinkphp
08c3be7c4c 改进追加关联模型属性的判断 2016-12-14 15:08:07 +08:00
thinkphp
c0b8580738 Model类增加appendRelationAttr方法用于追加关联模型的属性到当前模型 2016-12-14 15:03:00 +08:00
thinkphp
5ba052d94f 改进 2016-12-14 14:23:20 +08:00
thinkphp
78e5980451 一对一关联定义支持绑定关联模型属性到当前模型 在定义关联的时候使用bind方法 2016-12-14 13:56:19 +08:00
thinkphp
56c036635c 注释改进 2016-12-13 18:05:41 +08:00
thinkphp
538f675cca 改进软删除destroy和restore方法 2016-12-13 17:58:47 +08:00
thinkphp
59abc17750 改进Model类db方法 2016-12-13 17:42:54 +08:00
thinkphp
5c1c1d5f60 修正HasManyThrough关联 2016-12-13 16:50:28 +08:00
thinkphp
381f90a735 confirm和deifferent验证规则默认提示调整 支持传入验证比较字段名,例如:
confirm|repassword,确认密码
2016-12-13 15:25:26 +08:00
thinkphp
e36987fc5d Cookie类增加forever方法用于永久缓存 2016-12-13 14:48:01 +08:00
thinkphp
965e14eb76 改进Validate类的闭包规则错误 2016-12-13 14:47:43 +08:00
thinkphp
f77a48930a 改进Validate的getRuleMsg方法 2016-12-13 14:29:24 +08:00
thinkphp
7775dd9255 修正App类 2016-12-13 14:21:17 +08:00
thinkphp
ebf2431a50 改进App类控制器没有返回值返回204状态码 2016-12-13 11:50:16 +08:00
thinkphp
082b3bea81 改进一对一关联预载入查询 支持使用IN方式 一对一关联类增加setEagerlyType方法用于设置预载入查询方式 默认为JOIN方式,setEagerlyType(1) 使用IN方式
Loader类的parseName方法增加第三个参数 用于驼峰法转换是否首字母大写
2016-12-13 11:43:26 +08:00
thinkphp
8e8355e2d8 改进验证类的错误信息定义 2016-12-12 16:54:11 +08:00
thinkphp
c04bb1cd1e 规范预载入方法的调用 如果调用user_profile 预载入会自动对应 userProfile关联方法 2016-12-11 17:36:35 +08:00
thinkphp
63a3936eb9 改进Query类table方法 2016-12-09 19:18:35 +08:00
thinkphp
b81a6c5d38 改进Session类的boot方法 2016-12-09 19:01:44 +08:00
thinkphp
9e0185411e 改进Query类的trigger方法参数 2016-12-09 18:31:05 +08:00
thinkphp
936e4b3b04 改进Builder类的parseDateTime方法 2016-12-09 18:12:27 +08:00
thinkphp
846553ec13 增加Query对象的before_find before_select after_insert after_update after_delete 事件注册 2016-12-09 17:52:09 +08:00
thinkphp
b7fb12c2fb 修正File日志驱动 2016-12-09 15:33:30 +08:00
thinkphp
a223dd5aff 改进View类的root获取 2016-12-09 15:29:22 +08:00
thinkphp
08f648966c 修正View类的root解析 2016-12-09 15:11:18 +08:00
thinkphp
308a0b9ca8 MorphMany关联增加save和saveall方法 2016-12-09 15:01:34 +08:00
thinkphp
c5dbbb45da Relation类方法调整 2016-12-09 14:52:37 +08:00
thinkphp
d49b986bb8 修正Relation一处use 2016-12-09 14:43:04 +08:00