1

如何调整到Paginator CakePHP2?

我有这样的参考 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/

以至于看不到动作

4

1 回答 1

1

这对我有用:

路由.php

Router::connect('/home/page::page', array('controller' => 'homes', 'action' => 'index'));
于 2012-05-15T14:45:25.630 回答