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

时间:2011-05-23 14:33:35

标签: cakephp pagination cakephp-1.3

我在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

最小化代码用户控制器和视图 enter link description here

感谢回答

2 个答案:

答案 0 :(得分:3)

应该是(api

$this->Paginator->options(...

而不是

$this->Paginator->option(...

(请注意 s

希望有所帮助:)

答案 1 :(得分:0)

您的代码中没有包含AjaxHelper。