On Fri, Aug 10, 2012 at 9:58 AM, Lightee <lightai...@gmail.com> wrote:
> Thanks for your patient replies. Yes, I did read it even a few times but
> cannot be sure if I understand correctly. The problem is there is no sample
> code to test one's understanding.
>
> <?php
> Router::connect(
>     "/:controller/:id",
>     array("action" => "edit", "[method]" => "PUT"),
>     array("id" => "[0-9]+")
> );
>
> I am guessing that what it means is that the action "edit" uses HTTP PUT and
> the parameter passed in is the id field. id field is a digit. What if I want
> to pass in 2 or more parameters which are not primary keys? May I know if
> this can be done in CakePHP?
>

What have you tried?

You can get more documentation in the API
http://api.cakephp.org/class/router#method-Routerconnect

Mike.

-- 
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+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.


Reply via email to