Welcome Guest, Not a member yet? Register   Sign In
call a controller function from another controller
#4

[eluser]bretticus[/eluser]
This is a perfect example of why you should have thin controllers and fat models.

Models are NOT just for storing database libraries. It is perfectly acceptable to store website logic in models.

So, when you need some specific data in more than one controller, just load the model for it and pass the data to the view. Done.


Messages In This Thread
call a controller function from another controller - by El Forum - 11-28-2008, 10:43 AM
call a controller function from another controller - by El Forum - 11-28-2008, 10:51 AM
call a controller function from another controller - by El Forum - 05-11-2010, 08:00 AM
call a controller function from another controller - by El Forum - 05-11-2010, 10:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB