Hi Mathew,
I can't replicate your problem. I can request using either syntax. Try
to run the tests for the dispatcher and see if they fail. If so, then
your setup may have some strange setting causing problems.
You don't say how the requestAction fails. What is the error you get?
Those lines from the dispatcher are not as bas as they seem.
To be more readable the lines could probably have been written:
if (is_array($url)) {
$this->__extractParams($url, $additionalParams);
$url = null;
$parse = false;
}
Making $url a null value is intentional since further down $this-
>params is what is used for the actual dispatching. And $this->params
is set by __extractParams(). The commented lines from __extractParams
() do look fishy at first but they have probably just been left there
and forgotten about.
/Martin
On Feb 23, 12:19 am, Mathew <[email protected]> wrote:
> $categories = $this->requestAction(array
> ('controller'=>'documents','action'=>'request_categories'));
> $categories = $this->requestAction('/documents/request_categories');
>
> The first line will fail, but the second line will work.
>
> Look in the dispatcher.php on line 111
>
> if (is_array($url)) {
> $url = $this->__extractParams($url,
> $additionalParams);
> $parse = false;
> }
>
> Now look at the function __extractParams on line 270.
>
> This function has no return failure. It has been commented out.
>
> I found this in Cake 1.2.1.8004 build.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---