yes i got that. but
http://127.0.0.2/sections/view/14/autocard/4

actually calls sections controller with method view and param 14,
autocard is method of cars controller and it's param should be 4 but i
can't get how to handle this via requestAction


On 28 окт, 14:09, zwobot <[EMAIL PROTECTED]> wrote:
> Passing parameters via URL:
> /<controller_name>/<action_name>/<parameter_1>/<parameter_2>/
> <parameter_n>
>
> Parameters are added with slashes into the URL after the action name,
> so if you have an action autocard in your controller: (let's assume it
> is called PostsController)
>
> function autocard ($param1, $param2) {
>   echo $param1;
>   echo $param2;
>
> }
>
> Now you can call this function with the URL /posts/autocard/hello/
> world
> and it would print you in the view: hello world
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to