Hi mark_story,
thank you for fixing my ticket 5299.
Klaus
mark_story wrote:
> Klaus,
>
> If you could open a ticket on trac.cakephp.org and provide a way that
> we can reproduce the error or provide a test case, then we can fix
> this issue. As for using array urls for requestAction, this will skip
> all the routing and url parsing stages of dispatching, so you need to
> provide the parameters in the same fashion as they appear inside $this-
>> params. Which is why biesbjerg's example works.
>
> -Mark
>
> On Aug 21, 3:46 am, Klaus Schwarzkopf <[EMAIL PROTECTED]> wrote:
>> Hi biesbjerg,
>>
>> this function call works, but i am migrating from 1.1 to 1.2 and there
>> are many requestAction function calls in my application.
>> Is this bug fixed in the final release?
>>
>> Thank you for your help
>>
>> Klaus
>>
>> biesbjerg wrote:
>>> Hi Klaus,
>>> Try $this->requestAction(array('controller'=>'repairs',
>>> 'action'=>'getData'), array('pass' => array(0)));
>>> On 18 Aug., 11:11, Klaus Schwarzkopf <[EMAIL PROTECTED]> wrote:
>>>> Hi,
>>>> i use the requestAction funktion with a parameter. The value of the
>>>> parameter is 0.
>>>> My cake version is 1.2.0.7296 RC2.
>>>> Controller:
>>>> $action='/repairs/getData/0';
>>>> $this->set('repairs', $this->requestAction($action));
>>>> I get this error:
>>>> Warning (2): Missing argument 1 for RepairsController::getData(), called
>>>> in /var/www/auftragnew/cake/cake/libs/object.php on line 115 and defined
>>>> [APP/controllers/repairs_controller.php, line 22]
>>>> Code
>>>> function getData($id)
>>>> RepairsController::getData() - APP/controllers/repairs_controller.php,
>>>> line 22
>>>> Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
>>>> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 261
>>>> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 234
>>>> Object::requestAction() - CORE/cake/libs/object.php, line 99
>>>> OrdersController::view() - APP/controllers/orders_controller.php, line 652
>>>> Object::dispatchMethod() - CORE/cake/libs/object.php, line 117
>>>> Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 261
>>>> Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 234
>>>> [main] - APP/webroot/index.php, line 90
>>>> This function call does not work, too.
>>>> $this->requestAction(array('controller'=>'repairs', 'action'=>'getData',
>>>> 0));
>>>> Thanks
>>>> Klaus
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---