Welcome Guest, Not a member yet? Register   Sign In
controller functions best practice
#2

[eluser]TheFuzzy0ne[/eluser]
I don't really understand the underlying structure. Does each branch serve up a different page? If so, then what's wrong with having 12 methods (one for each branch)?

You may want to look into the [url="http://ellislab.com/codeigniter/user-guide/general/controllers.html#remapping"]_remap()[/url] method or using [url="ellislab.com/codeigniter/user-guide/general/routing.html"]routes[/url]. Perhaps that's what you're after?


Messages In This Thread
controller functions best practice - by El Forum - 04-08-2013, 03:32 AM
controller functions best practice - by El Forum - 04-08-2013, 03:49 AM
controller functions best practice - by El Forum - 04-08-2013, 04:37 AM
controller functions best practice - by El Forum - 04-08-2013, 04:45 AM
controller functions best practice - by El Forum - 04-08-2013, 07:13 AM
controller functions best practice - by El Forum - 04-11-2013, 05:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB