Architecting Your Models
by Matthew Weier O'Phinney
- 23,569 views
Provides some approaches to the "M" in MVC -- Models -- and how to get away from tying models to your database, and instead adopt sane approaches that provide more flexibility and forward ...
Provides some approaches to the "M" in MVC -- Models -- and how to get away from tying models to your database, and instead adopt sane approaches that provide more flexibility and forward exapandibility in your code.
Statistics
- Likes
- 68
- Downloads
- 680
- Comments
- 7
- Embed Views
- Views on SlideShare
- 21,682
- Total Views
- 23,569



Doctrine seems to be engineered from the perspective that you'd be using the Doctrine_Record extending models directly.
Cheers,
Phil 3 years ago
Interesting. I've spent time recently to implement different layers within Zend MVC.
I have the following architecture: Controller > Facade (Service manager) > Service Layer > DAO > ORM with dependencies injection (and some experimental AOP :p).
But i felt so alone around the forums with that stuff. The PHP developers were not ready yet to go so far.
I'm happy that you're starting to talk about the subject and i hope that kind of architecture will be democratized and proposals will emerge soon !
In the mean time, this tutorial should generate some interesting discussions but i don't really know where the discussion could take place (nabble, your blog ?).
Cya,
Benjamin.
(I'm sorry if my english is sometime not so good !) 3 years ago