相关疑难解决方法(0)

CakePHP PaginationRecallComponent,Strict(2048):PaginationRecallComponent :: initialize()的声明

我试图插入PaginationRecallComponent(http://bakery.cakephp.org/articles/Zaphod/2012/03/27/paginationrecall_for_cakephp_2_x),

App - > Controller - > Component - > PaginationRecallComponent.php

UserController:public $ components = array('PaginationRecall');

为什么我收到以下错误:

Strict (2048): Declaration of PaginationRecallComponent::initialize() should be compatible with Component::initialize(Controller $controller) [APP/Controller/Component/PaginationRecallComponent.php, line 46]
Code Context


App::load() - CORE/Cake/Core/App.php, line 567
App::load() - CORE/Cake/Core/App.php, line 567
spl_autoload_call - [internal], line ??
class_exists - [internal], line ??
ComponentCollection::load() - CORE/Cake/Controller/ComponentCollection.php, line 110
ComponentCollection::init() - CORE/Cake/Controller/ComponentCollection.php, line 53
Controller::constructClasses() - CORE/Cake/Controller/Controller.php, line 652
Dispatcher::_invoke() - CORE/Cake/Routing/Dispatcher.php, line 183
Dispatcher::dispatch() - CORE/Cake/Routing/Dispatcher.php, line 162 …
Run Code Online (Sandbox Code Playgroud)

components cakephp initialization

1
推荐指数
1
解决办法
2121
查看次数

标签 统计

cakephp ×1

components ×1

initialization ×1