Jump to content

Service Layer and the Data Mapper Pattern


brianlange

Recommended Posts

I'm working with the zend framework. I've implemented the quickstart tutorial that uses that data mapper pattern. I am now reading about using a service layer. Does the service layer serve as the mapper class? In other words are they exclusive? Or could an application have both a service layer and a data mapper class?

 

 

Exactly what ignance mentioned. Your service layer should handle model creation. It should pull a lot of that logic out of your controllers. If you want, you can take a look at an example I have on github: https://github.com/rkeplin/Blog/tree/master/application/services/

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.