The parameters passed to requestAction are passed the same as any other
controller action parameters are passed. IE $this->requestActions(
'controller/action/param1/param2' );
You shouldn't be using a querystring since cake goes to great lengths to
make your urls pretty why would you bypass that?
Nandagopal wrote:
>
>
> Hi all,
>
> I just wanted to clarify how requestAction treats url parameters.
>
> In a url like: /con/action/1.xml?abc=123&def=456
>
> if "abc" or "def" is already present in the $_GET environment
> variable, the params['url'] inside the requested controller does not
> reflect the new values of "abc" & "def"
>
> so,
> if $_GET := Array('url' => '/foo?abc=789', 'abc' =>
> '789')
>
> and I do a,
> requestAction( "/bar?abc='123'" ) inside
> FooController::index()
>
> I still get the old value 'abc' => "789" inside
> BarController::params['url']
>
>
> I find that Dispatcher::getParams() is using $_GET directly.
>
>
> Is this the intended behavior?
> Although I can set the "extra" parameters to override "url", I would
> prefer not to do it by hand.
>
>
> Thanks.
>
> --
> Nanda Gopal
>
> >
>
>
--
View this message in context:
http://www.nabble.com/requestAction-url-parameters-tp14411881p14431046.html
Sent from the CakePHP mailing list archive at Nabble.com.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---