Tag: move

  • Symfony 2: Why You Should Move Your Logic into a Service

    In typical MVC applications, people end up storing business logic into either the controller or the model layer. The problem in this approach is that in either case, you introduce code bloat and dependencies that should not really exist. Controllers, which are essentially the observer pattern, act as a traffic light, taking requests and directing…

  • The Zend Framework: Problems with Controllers, Models and Domain Modeling

    In talking with an ex-colleague, I realized that there’s a lot of confusion that takes place in these so-called MVC frameworks. What I’ve noticed is that many have different interpretations of what the Model-View-Controller looks like (typically only getting the view portion correct in implementation). Most controversy in architecture revolves around the Model and the…