Welcome Guest, Not a member yet? Register   Sign In
Naming conventions for controllers
#1

[eluser]ilSignorCarlo[/eluser]
Hi,
everytime I start a new project with CodeIgniter I'm not sure about a good practice in organizing the whole project.

For example, how do you usually choose the name for a controller? Is it a good habit to name controllers after the site structure? For example: a "home" controller, a "user_profile", "admin" and so on. Almost a controller for every main page of the site.

This usually tends to work (at least, for me), but I suppose it is a wrong approach.

Can you show me some examples of controller names or of a directory site structure?

Thanks,
Carlo


Messages In This Thread
Naming conventions for controllers - by El Forum - 12-12-2009, 06:42 AM
Naming conventions for controllers - by El Forum - 12-12-2009, 07:02 AM
Naming conventions for controllers - by El Forum - 12-12-2009, 07:10 AM
Naming conventions for controllers - by El Forum - 12-12-2009, 07:15 AM
Naming conventions for controllers - by El Forum - 12-12-2009, 07:27 AM
Naming conventions for controllers - by El Forum - 12-12-2009, 08:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB