For projects written in php, can I call more than one (or multiple) controller in class controller? Example in http://img192.imageshack.us/img192/7538/mvc03.gif
ASK: I need to call an action from another controller… And if I do like the picture above, I’m being out-ethics?
Thanks,
Vinicius.
out-ethics? Anywhose… back to reality.
Yes, a controller can call another controller’s action. For instance, in cakePHP, this functionality is afforded via requestAction
If you’re rolling your own, the details of how to implement it will be very specific to your framework.