News Feed
Sections




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

DevShed:
Building a Web Page Controller for Simulating the Model-View-Controller Schema in PHP
August 14, 2006 @ 13:30:47

DevShed continues their look at the Model-View-Controller schema in PHP with this new part in the series, part two detailing the creation of the first part of the setup - the controller.

The next step on this journey consists of implementing the MVC schema in the context of a real-world application. We're going to build a web page controller system, which will be capable of creating different style sheets on the fly. In this way it will generate several views from the same model, that is the web document in question.

They walk through their example, creating their PageController to handle generating pages of different styles, a page generator class to use the controller, making a style sheet generator class, and putting them all together to create a working MVC schema.

0 comments voice your opinion now!
model view controller part2 web page simulating model view controller part2 web page simulating


blog comments powered by Disqus

Similar Posts

Matthew Turland's Blog: How-To (and How-Not-To) on Web Scraping

Rob Allen's Blog: Zend_View: Access the view from a view helper

Ryan Malesevich's Blog: iTunes Stats for Macintosh with PHP & MySQL Part 2

Ibuildings techPortal: PHPNW11 Conference Report - Part II

CodeSnipers.com: More Stupidly Easy MVC in PHP


Community Events

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


release podcast interview community version example conference php7 extension api language series voicesoftheelephpant introduction unittest opinion laravel5 framework laravel library

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