Welcome Guest, Not a member yet? Register   Sign In
Design question for seasoned CI pros!
#1

[eluser]sipsniffa[/eluser]
Hi,

I'm much less familiar with application development with PHP and CodeIgniter than I am with Java and the Spring Framework.

Separating software concerns into layers is something that comes easily with Java. The few CodeIgniter examples that I've seen have placed design elements that I would normally place in a services layer in either the model or the controller layers.

How do you seasoned CodeIgniter developers separate your applications? Do you restrict yourselves to the three MVC layers, or do you create extra layers? - such as a services layer. If you do create extra layers, then how do you expose those layers to the rest of the application?

Thanks,

Paul.
#2

[eluser]xwero[/eluser]
I like to use a validation layer which is nothing more than a model where i load the validation library in so the layer is more a controller than a model.

To make the layer accessible i created a hook that first loads the model then the validation and in the end page content from the model based on the controller and method.




Theme © iAndrew 2016 - Forum software by © MyBB