CakePHP and the Repository Pattern
The Insider News
1
Posts
1
Posters
0
Views
1
Watching
-
Implementing the Repository Pattern with CakePHP I must admit, my recent articles are becoming a bit obsessed around the repository pattern. What can I say, I like it, it’s useful, and it’s not restrictive based on a language or a framework. I’ve long professed how I dislike convoluted controllers. CakePHP’s find method almost immediately causes this when used inside a controller. More importantly, the code inside the find method is extremely unreadable. This is almost more important than a large controller function!
I really like how this is implemented.