When using cake 1.2 RC1 pagination, how would I dynamically start at
different pages
I have this at the top of my controller:
var $paginate = array('List'=>array('limit'=>10, 'page'=>1));
However, I want to be able to change this in my methods. The following does
not work, does anybody know how to get this to work?
function index($startAt)
{
$this->paginate = array('List'=>array('limit'=>10, 'page'=>$startAt));
}
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---