Welcome Guest, Not a member yet? Register   Sign In
Codeigniter File structure
#2

[eluser]jdfwarrior[/eluser]
Ideally, the only time you would group two pages in the same controller would be if they shared a similar function. For instance, creating a 'user' controller that had functions for 'login', 'register', etc.

I'm assuming that you do understand that your code would need to be in the application directory. I would create a controller for each and just have the basic index function in each controller, that loaded the view for that page.


Messages In This Thread
Codeigniter File structure - by El Forum - 10-12-2009, 08:31 AM
Codeigniter File structure - by El Forum - 10-12-2009, 08:45 AM
Codeigniter File structure - by El Forum - 10-12-2009, 09:25 AM
Codeigniter File structure - by El Forum - 10-12-2009, 03:32 PM
Codeigniter File structure - by El Forum - 10-12-2009, 03:34 PM
Codeigniter File structure - by El Forum - 10-12-2009, 03:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB