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

Paul Jones:
"Page Script" As A Degenerate Controller
February 04, 2014 @ 12:26:52

In his latest post Paul Jones looks at the more legacy structure of "page controllers" (a site based on several pages rather than an MVC style) that was common before the "MVC revolution" in the PHP community years back.

Almost all of the legacy applications I've had to deal with were page-based. In doing the work to modernize them, there comes a time where the page script has been refactored to look very much like a page controller, with some distinct but not critical differences. As such, I have come to consider the typical PHP page script to be a degenerate form of a page controller. With a little imagination, I think it's easy to see why.

He talks about how, in this older situation, the web server becomes a sort of "simplified front controller+router+dispatcher" and the PHP page acts as a "controller". He suggests that, even though this structure isn't as well separated as an MVC application, it can still be organized to make it easier to maintain.

0 comments voice your opinion now!
page controller mvc legacy structure

Link: http://paul-m-jones.com/archives/5907

blog comments powered by Disqus

Similar Posts

Zend Developer Zone: ZendCon Sessions Episode 037: Why MVC is not an Application Architecture

Matt Curry's Blog: Review: Refactoring Legacy Applications Using CakePHP

Mike Davies' Blog: PHP Frameworks: comparing CakePHP and symfony

Alexander Netkachev's Blog: Automatic testing of MVC applications created with Zend Framework

ClearCode: Symfony - Project Tamed


Community Events











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


unittest install hack package podcast symfony2 framework release composer language application opinion security component hhvm introduction overview code facebook example

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