user1323326
user1323326

Reputation:

How to adjust to the Paginator CakePHP2?

how to adjust to the Paginator CakePHP2?

I have such a reference 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>

and how to do that was so http://third.loc/home/page:2/

so that action could not be seen

Upvotes: 1

Views: 114

Answers (1)

Patrick Hafner
Patrick Hafner

Reputation: 129

This works for me:

routes.php

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

Upvotes: 1

Related Questions