我试图将搜索插件整合到我的项目中,我认为我遵循了下载网站的说明,但每当我访问帖子时,它都会给我这3行错误:
Warning (2): call_user_func_array() expects parameter 1 to be a valid callback, class 'PrgComponent' does not have a method 'startup' [CORE\Cake\Utility\ObjectCollection.php, line 110]
Warning (2): call_user_func_array() expects parameter 1 to be a valid callback, class 'PrgComponent' does not have a method 'beforeRender' [CORE\Cake\Utility\ObjectCollection.php, line 110]
Warning (2): call_user_func_array() expects parameter 1 to be a valid callback, class 'PrgComponent' does not have a method 'shutdown' [CORE\Cake\Utility\ObjectCollection.php, line 110]有没有人能帮我解决这个问题?
谢谢!
发布于 2011-11-02 10:09:35
下载站点?哪个下载站点?这个插件的2.0版本还没有“下载站点”。
2.0分支在这里通过了https://github.com/CakeDC/search/tree/2.0和PrgComponent的所有测试。
9/9 test methods complete: 9 passes, 0 fails, 13 assertions and 0 exceptions.
Time: 0.29582810401917 seconds
Peak memory: 11,688,424 bytes
Run more tests | Show Passes | Analyze Code Coverage
Code coverage results Toggle all files
PrgComponent.php Code coverage: 99.06%查看来自git的2.0分支。
你是在说CakeDC搜索插件吗?
发布于 2011-11-20 19:31:52
在Cakephp 2.0组件类中extents组件不是对象
因此,编写以下代码:
class PrgComponent extends Component {
}https://stackoverflow.com/questions/7961399
复制相似问题