Controller:
$this->paginate = array(,,,, 'params' => array($id));
in view add:
if (isset($paginate['params'])) {
$paginator->options(array('url' => $paginate['params']));
}
On Jun 26, 3:57 am, rain <[EMAIL PROTECTED]> wrote:
> BTW I am using the cakephp 1.2 rc1
>
> On Jun 26, 8:52 am, rain <[EMAIL PROTECTED]> wrote:
>
> > Hi,gays.
>
> > I have a User , and the User hasMany Posts, when view User, the
> > cakephp will find the User's posts, but i donot want show all the
> > post , i want using the paginate , how to do this?
>
> > 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
-~----------~----~----~----~------~----~------~--~---