如何适应Pagination CakePHP 2?

时间:2012-05-15 14:29:59

标签: php cakephp-2.0

如何调整Pagination CakePHP 2?

我有这样的参考 http://third.loc/home/index/page:2

            <div class="paging">
                <?php

                echo $this->Paginator->prev('< ' . __('previous'), array(), null, array('class' => 'prev disabled'));
                echo $this->Paginator->numbers(array('separator' => ''));
                echo $this->Paginator->next(__('next') . ' >', array(), null, array('class' => 'next disabled'));
                ?>
            </div>

如何做到这一点 http://third.loc/home/page:2/

因此无法看到行动

1 个答案:

答案 0 :(得分:1)

这对我有用:

<强> routes.php文件

Router::connect('/home/page::page', array('controller' => 'homes', 'action' => 'index'));