Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/248.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Cakephp 2.0中配置搜索插件_Cakephp_Cakephp 2.0 - Fatal编程技术网

如何在Cakephp 2.0中配置搜索插件

如何在Cakephp 2.0中配置搜索插件,cakephp,cakephp-2.0,Cakephp,Cakephp 2.0,我试图将搜索插件整合到我的项目中,我认为我遵循了下载站点的说明,但每当我访问帖子时,就会出现以下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

我试图将搜索插件整合到我的项目中,我认为我遵循了下载站点的说明,但每当我访问帖子时,就会出现以下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]
有人能帮我弄清楚吗


谢谢

下载站点?哪个下载站点?这个插件的2.0版本还没有“下载站点”

2.0分支在此,PRG组件的所有测试均通过

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搜索插件吗?

下载站点?哪个下载站点?这个插件的2.0版本还没有“下载站点”

2.0分支在此,PRG组件的所有测试均通过

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分支


您是否在谈论Cakephp 2.0组件类extents组件not Object中的CakeDC搜索插件?

因此,编写以下代码:

class PrgComponent extends Component {

}

在Cakephp 2.0组件类中,扩展组件不是对象

因此,编写以下代码:

class PrgComponent extends Component {

}

该插件或您的代码似乎与有效回调的2.0要求不匹配。您获得的搜索插件版本是什么?该插件或您的代码似乎不符合2.0对有效回调的要求。你的搜索插件版本是什么?嗨,Burzum,我刚才说的下载网站是cakedc的。它适用于1.3,但不确定它是否适用于2.0,但谢谢你,我将尝试你提供的链接。我将把这个作为我问题的答案。谢谢你!欢迎使用,如果您还想使用1.3版本,请使用github上的主分支,而不是下载。我想我们需要删除下载部分,那里的文件已经过时了。嗨,Burzum,我刚才说的下载站点是cakedc的。它适用于1.3,但不确定它是否适用于2.0,但谢谢你,我将尝试你提供的链接。我将把这个作为我问题的答案。谢谢你!欢迎使用,如果您还想使用1.3版本,请使用github上的主分支,而不是下载。我想我们需要删除下载部分,那里的文件已经过时了。