开发者

I have a problem about the paginator helper in Cakephp

开发者 https://www.devze.com 2023-03-08 00:23 出处:网络
I follow in example in book.cakeph开发者_C百科p and I try to search solution for it but not found

I follow in example in book.cakeph开发者_C百科p and I try to search solution for it but not found this it problem

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

minimize code User Controller and view enter link description here

Thank for answer


It should be (api)

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

instead of

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

(note the s)

Hope it helps :)


You don't have the AjaxHelper included in your code.

0

精彩评论

暂无评论...
验证码 换一张
取 消