Saturday, November 1, 2008

Re: Named parameter routing does not work with pagination(bug or feature?)

Thanks Mathew,

This works like charm.. .thank you very much.

thanks.

On Sat, Nov 1, 2008 at 10:01 PM, Mathew <nfoscarini@yahoo.com> wrote:

Sorry, my mistake.

I forgot to tell you to remove the "array('pass'=>array('uid'))" from
your routes, and then read the UID parameter from the $this-
>params['uid'] in your Users controller Friends action.

function friends()
{
 $uid = $this->params['uid'];
}

You'll need to check if isset($this->params['uid']), because /users/
friends unless routed to a 404 will still call the same action without
a UID.




--
Thanks & Regards,
Novice.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: