Tuesday, November 30, 2010

Re: Routing with parameters

Hi,

Your route should be something like

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

Amit Badkas

PHP Applications for E-Biz: http://www.sanisoft.com



On Mon, Nov 29, 2010 at 10:45 PM, xamako <xamako@gmail.com> wrote:
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

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: