我在Cakephp中有一个分页器助手的问题

问题描述

|| 我按照book.cakePHP中的示例进行操作,我尝试为其寻找解决方案,但未找到 这是问题
Warning (512): Method PaginatorHelper::option does not exist    [CORE\\cake\\libs\\view\\helper.PHP,line 154]
Code | Context
Helper::call__() - CORE\\cake\\libs\\view\\helper.PHP,line 154
Overloadable::__call() - CORE\\cake\\libs\\overloadable_PHP5.PHP,line 50
PaginatorHelper::option() - APP\\views\\layouts\\default.ctp,line 41
include - APP\\views\\layouts\\default.ctp,line 41
View::_render() - CORE\\cake\\libs\\view\\view.PHP,line 731
View::renderLayout() - CORE\\cake\\libs\\view\\view.PHP,line 489
View::render() - CORE\\cake\\libs\\view\\view.PHP,line 435
Controller::render() - CORE\\cake\\libs\\controller\\controller.PHP,line 909
dispatcher::_invoke() - CORE\\cake\\dispatcher.PHP,line 207
dispatcher::dispatch() - CORE\\cake\\dispatcher.PHP,line 171
[main] - APP\\webroot\\index.PHP,line 83
最小化代码用户控制器并查看 在此处输入链接说明 谢谢回答     

解决方法

应该是(api)
$this->Paginator->options(...
代替
$this->Paginator->option(...
(注意s) 希望能帮助到你 :)     ,您的代码中没有AjaxHelper。