I have this code in the AgentsController
var $paginate = array('limit' => 2, 'page' => 1);
...
function index() {
..
$this->set('table', $this->paginate('Agent'));
..
}
and this in the view:
<?= $paginator->prev('<< Previous', null, null, array('class' => 'nav-
dis')) ?>
|<?= $paginator->next('Next >>', null, null, array('class' => 'nav-
dis')) ?>
on the first page I get next link as action/page:2 - what is correct,
but on second page prev link generates as action/page:1page:1 (page
parameter repeated)
No extra code related to paginator.
Any thought ?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---