Welcome Guest, Not a member yet? Register   Sign In
Service Layer in Codeigniter 2 with Doctrine 2
#1

[eluser]Unknown[/eluser]
hope some of you can give me a hand with this.

Im working in a project using Codeigniter 2 and Doctrine 2, everything is working ok but I have some "sanity" issues i would like to fix.

The main problem I have right now is with persisting the entities. In a normal MVC the persistance should be in the Model, but now that I only have Entities and Repositories and i dont have the so called "Models", I'm putting all of this code in the controller making them huge and intimidating Sad

I've read on some places that the best approach for this is to have a "Service" layer between the Controller and the Entities, but I haven't found a good way to do this in Codeigniter due to is hard classic MVC pattern.

So im asking for some advice in how to aproach this. Any of you guys is having the same problems?




Theme © iAndrew 2016 - Forum software by © MyBB