Monday, November 29, 2010

Routing with parameters

Hi!

I'm trying to rounting to a method of a controller with a
specific parameter.

What I'm trying to do is simulate a call like:

www.web.com/portfolio/index/forsale:1

This is what I have so far, but I do not know how to add the parameter
the call

Router:: connect ('/ sitelocks', array ('controller' => 'portfolio',
'Action' => 'index'));

Thanks!

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

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: