Welcome Guest, Not a member yet? Register   Sign In
Application structure question
#12

[eluser]beemr[/eluser]
[quote author="wiredesignz" date="1216820187"]A library loading views?... This sounds suspiciously like a controller to me.[/quote]
Yes. It's a bit of a bastardization, but it is tidy. All of my auth code exists in the auth library. If I need global access to another discreet "module", it will live in its own separate library. Models and views are still separated CI-style. Call it MVLibrary.

Micheal Wales was describing what is often called a "Super Controller" pattern, but the tradeoff is that there is only one parent controller. If you are running many different such "modules" through your Super-controller, you will have a monolithic entity that holds disparate functions. While the Super-controller is passing down an auth module, it might also be passing down a cart and a messaging cue.

Super-controller: Would you like a shopping cart, messaging, and advertisements with that context-nav?

MVLibrary: what controller?


Messages In This Thread
Application structure question - by El Forum - 07-20-2008, 09:54 PM
Application structure question - by El Forum - 07-20-2008, 10:33 PM
Application structure question - by El Forum - 07-20-2008, 10:58 PM
Application structure question - by El Forum - 07-21-2008, 10:01 PM
Application structure question - by El Forum - 07-22-2008, 10:35 PM
Application structure question - by El Forum - 07-22-2008, 11:39 PM
Application structure question - by El Forum - 07-23-2008, 02:09 AM
Application structure question - by El Forum - 07-23-2008, 02:36 AM
Application structure question - by El Forum - 07-23-2008, 02:48 AM
Application structure question - by El Forum - 07-23-2008, 03:26 AM
Application structure question - by El Forum - 07-23-2008, 03:42 AM
Application structure question - by El Forum - 07-23-2008, 10:45 AM
Application structure question - by El Forum - 07-23-2008, 11:00 AM
Application structure question - by El Forum - 07-23-2008, 11:49 AM
Application structure question - by El Forum - 07-23-2008, 12:08 PM
Application structure question - by El Forum - 07-23-2008, 12:57 PM
Application structure question - by El Forum - 07-23-2008, 01:55 PM
Application structure question - by El Forum - 07-23-2008, 02:59 PM
Application structure question - by El Forum - 07-27-2008, 09:51 PM
Application structure question - by El Forum - 10-01-2008, 02:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB