【问题标题】:I have a problem about the paginator helper in Cakephp我对 Cakephp 中的分页器助手有疑问
【发布时间】:2011-08-31 05:13:35
【问题描述】:

我按照 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

感谢回答

【问题讨论】:

    标签: cakephp pagination cakephp-1.3


    【解决方案1】:

    应该是(api

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

    而不是

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

    (注意 s

    希望对你有帮助:)

    【讨论】:

    • 嘿下一个但它不起作用你能告诉解决方案在蛋糕中调试 ajax,请
    • 您必须同时设置客户端和服务器端调试器。在服务器端,我使用了 xdebug(使用 eclipse),在客户端:firebug(在 firefox 中)或 google chrome 的检查器,然后添加断点并开始调试
    【解决方案2】:

    您的代码中没有包含 AjaxHelper。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2012-12-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-05-21
      • 2017-03-28
      • 2012-07-20
      相关资源
      最近更新 更多