Hi Bakers! I'm trying to call the action, miniView, in my
UsersController FROM the beforeFilter() action in my FormsController.
Here is the code I'm calling the action with:
Controller::setAction('/users/miniView/' . $sess_user['User']['id']);
I get:
Warning: call_user_func_array() [function.call-user-func-array]: First
argument is expected to be a valid callback, 'FormsController::/users/
miniView/11' was given in /usr/local/apache2/vhosts/www.mydomain.com/
cake/libs/controller/controller.php on line 483
I can't find examples of syntax for setAction except what is in the
API and I though I had it correct based on that.
Can someone tell me what I'm doing wrong? And if there's a better way
to call one controller's action from a different controller?
I'm try to build an app to have users fill out various forms to fill
out and populate tables. Each form has a controller and a table.
Thanks in advance for your time!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---