Welcome Guest, Not a member yet? Register   Sign In
how to get list of the controller methods
#6

[eluser]EugeneS[/eluser]
[quote author="mahuti" date="1196465175"](if you're interested) According to the MVC design pattern, a controller shouldn't call another controller.Why? Because each controller should essentially be an intermediary between the view and the data (model). If you're calling the controller to make it *do* something then it should just be a part of the first controller, or if you're calling it for data, you should be targeting the model.

Form doesn't really matter until you plan to extend, modify or reuse parts of your code, in which case you'll have to remember to pull in both of your controllers.[/quote]

you think i dont know this ?

as i said before i need to call another controller to receive his methods ... the other way is parsing php files - what is stupidity.

frankly speaking in my other thread i asked to not teach me MVC pattern, i know it very well BUT in my particular case i NEED to call controller from another one (if you read my initial request at all).


Messages In This Thread
how to get list of the controller methods - by El Forum - 11-30-2007, 09:50 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 10:19 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 11:17 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 11:26 AM
how to get list of the controller methods - by El Forum - 11-30-2007, 12:39 PM
how to get list of the controller methods - by El Forum - 12-01-2007, 05:29 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 05:30 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 05:41 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 06:06 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 06:18 AM
how to get list of the controller methods - by El Forum - 12-01-2007, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB