I don't think I did. Here is what my controller looks like.
<?php
class BrowseController extends AppController {
var $name = 'Browse';
var $components = array("Pagination");
var $helpers = array("Pagination","Text","Map");
function index() {
$pageTitle = "Skateparks";
// If state has been selected
$criteria = null;
list($order,$limit,$page) = $this->Pagination-
>init($criteria); // Added
$data = $this->Browse->findAll($criteria, NULL, $order,
$limit, $page); // Extra parameters added
$this->set('title',$pageTitle);
$this->set('browse', $data);
}
}
?>
On Apr 6, 8:39 am, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > I have just added the pagination component to my application but when
> > I navigate to my page, i only get one page of 5 results even though my
> > table has well over 200 rows. Has anyone else experienced something
> > similar or know what could be causing this?
>
> sounds like you've set the limit to 5 to me.
>
> $this->paginate['limit'] = 5;
>
> http://book.cakephp.org/view/164/pagination
>
> hth
>
> jon
>
> --
>
> jon bennett
> w:http://www.jben.net/
> iChat (AIM): jbendotnet Skype: jon-bennett
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---