自定义行为标签位

浏览:641 发布日期:2018/05/14 分类:ThinkPHP5专区 关键字: 行为,behavior,tp5,自定义行为
为了实现所有返回加密 我在response里定义了一个自定义的行为标签位Hook::listen('json_respone');
调用Hook::listen() 时会报Non-static method think\Hook::listen() should not be called statically, assuming $this from incompatible context
检查源代码发现确实不是静态方法 文档确实是这么写的 这是为什么呢
最佳答案
评论( 相关
后面还有条评论,点击查看>>