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
-~----------~----~----~----~------~----~------~--~---

Reply via email to