Welcome Guest, Not a member yet? Register   Sign In
How do you plan your CI applications?
#12

[eluser]jleequeen[/eluser]
[quote author="Colin Williams" date="1242872306"]
Quote:how do you arrive at figuring out those controllers?

Typically there is one controller per resource. Let's say we're making a CMS. Depending on how you design it, let's say your resources are Pages, Users, and Categories. This lends to a Page controller, User controller, and Category controller. That's a very basic example but I hope it explains the idea. Models typically follow suit but are more burdened with the complexities of these resources.[/quote]

How would one go about thinking of these resources? Would you start by looking at your database? It seems that you would still suffer from the same problem of, well what is a homepage? is it a resource? or controller? or action within a controller? As I said in an earlier post, certain things fit really neatly into one controller per model thinking, like CRUD stuff. But it gets confusing once you leave the CRUD world to what constitutes a controller vs an action or resource. I think that's what makes this planning process frustrating.


Messages In This Thread
How do you plan your CI applications? - by El Forum - 05-20-2009, 12:55 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 01:09 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 01:49 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 02:30 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:08 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:18 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:21 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:28 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:28 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:40 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 03:55 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 04:17 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 05:09 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 07:31 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 08:19 PM
How do you plan your CI applications? - by El Forum - 05-20-2009, 08:42 PM
How do you plan your CI applications? - by El Forum - 05-21-2009, 02:31 AM



Theme © iAndrew 2016 - Forum software by © MyBB