News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Chris Hartjes' Blog:
Converting Legacy Apps to CakePHP, Part 3
December 31, 2008 @ 12:58:33

Chris Hartjes continues his series looking at converting over legacy applications into a CakePHP environment with this third part, a focus on what can be one of the hardest parts - separating out business logic and presentation logic.

Anyway, onto other matters. As you saw in parts 1 and 2, a bug part in having a successful transition from legacy app to CakePHP is having an environment that is well suited to the use of a framework. Having laid out the groundwork for that switchover, it's time to talk about the part of a refactoring or porting that is most difficult: separating your business logic from your display logic.

He talks about fat models, skinny controllers and flexible views with some code to illustrate each. This method makes the models do most of the work while the controllers are more of a go-between for them and the views. The views, then, are pliable enough to work with whatever data might be thrown at them.

0 comments voice your opinion now!
legacy application cakephp series fat model skinny controller view flexible


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend\Db\Sql\Select - The Basics (Columns, Limit & Order)

Chris Hartjes' Blog: “My framework is more MVC than *your* framework!”

SaniSoft Blog: Introduction to creating desktop applications with PHP and Titanium

O\'Reilly: Implementing MVC in PHP: The View

Insidesigns Blog: Create a scalable private messaging application using PHP5


Community Events











Don't see your event here?
Let us know!


hhvm database application package language security install opinion component symfony2 framework introduction performance series facebook hack composer podcast unittest release

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework