我想我已经成功地在Kohana3.1中安装了FirePHP模块,但是我没有在FireBug控制台上得到任何输出。
我试过了:
FirePHP::log('test');并得到了这个错误:
Non-static method FirePHP::log() should not be called statically, assuming $this from incompatible context.当我关闭模块并手动运行FirePHP时:
require_once('FirePHPCore/fb.php');
fb('test');控制台中没有显示任何内容。
发布于 2011-08-08 07:51:51
正如异常消息所说,您不应该静态地调用该方法,而应该像这样:
FirePHP::getInstance()->log('test');几天前添加了static Fire helper类,所以现在您可以这样做:
Fire::log('test');https://github.com/kemo/kohana-firephp
另一个可能的问题是Firebug1.8,因为当前的FirePHP插件版本不支持它。您可以更新附加组件here
https://stackoverflow.com/questions/6976483
复制相似问题