thinkphp
97fbbbc0e3
修正Url类域名部署的问题
2016-10-26 08:29:25 +08:00
thinkphp
d96a037e49
视图文件目录支持集中式存放 不放入模块目录
2016-10-25 23:56:17 +08:00
thinkphp
a3f80621b5
改进Query类的paginate方法
2016-10-25 22:54:40 +08:00
thinkphp
535e17b1a0
修正软删除withTrashed方法
2016-10-25 20:42:21 +08:00
thinkphp
2477345218
优化Connection类的getRealSql方法生成的sql
2016-10-25 14:46:02 +08:00
thinkphp
6e5d83d513
资源路由自动注册的路由规则 记录当前使用的 资源标识 使用 路由参数 rest 获取
2016-10-24 18:13:35 +08:00
thinkphp
0674c77498
改进Query类的view和join方法
2016-10-24 14:15:09 +08:00
thinkphp
4e8467b830
增加 新的RouteNotFoundException异常
2016-10-24 11:12:02 +08:00
thinkphp
aca32d1da3
路由条件增加ajax和pjax
2016-10-23 23:40:36 +08:00
thinkphp
8f6cee67ed
路由请求类型改为小写
2016-10-23 22:29:11 +08:00
thinkphp
4865355dfc
改进Route类parseUrl方法
2016-10-23 22:10:53 +08:00
thinkphp
747b7fe7fa
改进绑定支持绑定到控制器分级
2016-10-23 21:53:10 +08:00
thinkphp
ae7a9a08a7
改进Route类rules方法
2016-10-23 13:22:40 +08:00
thinkphp
70e534f2fb
改进Route类
2016-10-22 21:02:04 +08:00
thinkphp
b5b5390832
完善绑定模块情况下 路由标识识别
2016-10-22 20:24:55 +08:00
thinkphp
d961dd9765
改进路由类的parseUrl方法
2016-10-22 20:05:51 +08:00
thinkphp
79d640f3a9
修正Route类name方法
2016-10-22 19:53:48 +08:00
thinkphp
9c57100d67
路由标识不区分大小写
2016-10-22 19:42:55 +08:00
thinkphp
a6f72f9ce2
改进App类的反射异常无法捕获问题
2016-10-22 15:02:10 +08:00
thinkphp
11f750071c
修正Query类一处错误
2016-10-22 13:25:31 +08:00
thinkphp
eb103a63a5
改进Request类ip方法
2016-10-22 13:21:49 +08:00
thinkphp
463dda9d01
改进路由域名绑定后的url生成
2016-10-22 12:58:05 +08:00
thinkphp
2c15118f60
改进Query类的join方法
2016-10-21 23:18:29 +08:00
thinkphp
a83af51903
改进Query类的view方法和join方法 支持使用不带前缀的表名
2016-10-21 23:05:33 +08:00
thinkphp
d33ed07d00
修正验证类一处BUG
2016-10-21 18:03:47 +08:00
thinkphp
294a49b8b1
改进验证类的image方法
2016-10-21 17:51:19 +08:00
thinkphp
35a12fac90
Merge branch 'master' of https://github.com/top-think/framework
2016-10-21 17:36:49 +08:00
thinkphp
5a417480a1
改进验证类的activeUrl方法 改进Query类分页方法的参数绑定
2016-10-21 17:36:09 +08:00
ThinkPHP
d0fd890ce9
Merge pull request #325 from clyoko/master
...
为Request类的几个方法完善注释
2016-10-21 17:25:16 +08:00
thinkphp
afa1376941
改进自定义验证规则的使用
2016-10-21 17:21:09 +08:00
thinkphp
367242113d
改进控制器自动搜索后的控制器名获取
2016-10-21 12:02:29 +08:00
HyperQing
c64a335884
为Request类的几个方法完善注释
...
在phpstorm2016.2.1中,使用下列语句会提示警告:
>Method __toString is not implemented for '\think\Request' less... (Ctrl+F1)
This inspection detects attempts to convert objects without __toString() method implementation to string, since PHP 5.2.0, it would cause E_RECOVERABLE_ERROR. "Check __toString exists for each expression type": if the option is on, the inspection will check all possible types of the expression and report if at least one ot them doesn't contain __toString() method implementation.
```
$request = Request::instance();
echo "当前模块名称是" . $request->module();// 这句会被IDE提示警告
echo "当前控制器名称是" . $request->controller();// 这句会被IDE提示警告
echo "当前操作名称是" . $request->action();// 这句就不会
```
后来发现是注释引起的问题,注释中有@return string|$this。而action()方法却写成@return string。个人认为应该统一写成@return string|Request 比较合适。学识短浅,仅供参考
```
/**
* 设置或者获取当前的模块名
* @access public
* @param string $module 模块名
* @return string|$this
*/
public function module($module = null)
```
2016-10-21 11:36:55 +08:00
thinkphp
3be17ea06b
修正静态路由检测
2016-10-20 23:38:14 +08:00
thinkphp
0117543df0
改进Session类的flush方法 判断是否开启session
2016-10-20 10:59:28 +08:00
thinkphp
cbd4c2c98c
路由变量规则支持闭包
2016-10-19 22:51:09 +08:00
thinkphp
d0cc9a7146
改进Model类的save方法 新增数据的时候添加不是自增主键的处理
2016-10-19 17:23:34 +08:00
thinkphp
4ceee7c5b2
invoke自动注入方法传入当前请求对象
2016-10-19 17:12:11 +08:00
thinkphp
a25b16b0cf
Session类增加flash方法用于设置下一次请求有效的值 flush方法用于清空当前请求有效的值 增加push方法
...
Redirect response类的with方法改为调用session类的flash方法
2016-10-19 15:16:31 +08:00
thinkphp
53233db821
改进App类
2016-10-19 12:27:43 +08:00
thinkphp
3a0bf10c3d
Merge branch 'master' of https://github.com/top-think/framework
2016-10-19 11:24:16 +08:00
thinkphp
3f654b6e5e
改进自动注入机制 需要依赖注入的类如果定义了invoke方法则自动调用
2016-10-19 11:22:35 +08:00
ThinkPHP
020a8aa49a
Merge pull request #321 from lw78665806/master
...
修复验证器规则无法获取多语言的问题
2016-10-18 21:23:50 +08:00
thinkphp
cb9b2b5803
Cache类增加remember方法 用于当获取的缓存不存在的时候自动写入
2016-10-18 16:19:06 +08:00
lw78665806
9e0b5da416
Update Validate.php
...
修复验证器无法获取多语言的问题
2016-10-18 10:14:37 +08:00
lw78665806
a449e236fa
Update Validate.php
...
修复验证器规则无法获取多语言的问题
2016-10-18 10:08:55 +08:00
yunwuxin
bb9e33e9a5
修正json_encode时 "Failed calling XXX::jsonSerialize()" 的异常
2016-10-17 17:52:09 +08:00
thinkphp
d9be9ddf6f
改进Loader类model和validate方法
2016-10-17 13:53:53 +08:00
thinkphp
f2e51604f4
改进整型字段的参数绑定写入 默认值
2016-10-17 12:09:13 +08:00
thinkphp
99300f8d4d
修正Query类setInc和setDec方法
2016-10-16 19:26:04 +08:00
thinkphp
4554f99451
改进
2016-10-15 11:09:34 +08:00