Welcome Guest, Not a member yet? Register   Sign In
elegant way design controllers for medium-sized app?
#2

[eluser]davidMC1982[/eluser]
I would extend Codeigniter's Controller class with MY_Controller, build my auth system as a library that gets loaded in MY_Controller and performs its ACL checks in the constructor. I would then make sure that I'm putting logic that belongs in the model, in the model. The methods you use for "manage people" are going to be the same whether it's an Administrator or someone else doing the managing.

My controllers would then extend MY_Controller and handle a specific feature (or group of features).


Messages In This Thread
elegant way design controllers for medium-sized app? - by El Forum - 10-17-2013, 07:04 PM
elegant way design controllers for medium-sized app? - by El Forum - 10-18-2013, 01:41 AM
elegant way design controllers for medium-sized app? - by El Forum - 10-18-2013, 03:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB