News Feed
Sections




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

O'Reilly:
Implementing MVC in PHP The View
January 27, 2006 @ 07:12:06

ONLamp.com has a new tutorial posted today, the next part in their look at the Model-View-Controller method for application development - this time, focusing on the View.

The presentation layer, as I call it, is the View, in common MVC terms. Its sole responsibility is to display information. It could care less about authenticating users, what the data is or, for the most part, where it came from. The only thing it has to worry about is how to render it and where to send it once rendered.

By default, the framework uses Smarty to render the framework. I'm not here to argue semantics, but your presentation layer should consist of a template engine of some sort and a few supporting presentation layers.

They show how, based on the code from previous parts, how to implement the output of the application with the help of the Smarty libraries. They show two methods of output - a normal HTML version for humans to read and a well-formed XML document fit for any number of uses...

0 comments voice your opinion now!
model view controller implement output presentation layer model view controller implement output presentation layer


blog comments powered by Disqus

Similar Posts

CodeSnipers.com: Stupidly Easy MVC - Group Membership Application (Part 2)

Padraic Brady's Blog: An Example Zend Framework Blog App - Part 3: A Simple Hello World Tutorial

Ibuildings techPortal: Create MVC: Meet the ViewModel Pattern

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

SitePoint PHP Blog: Speed Up Your Website with PHP Buffer Flushing


Community Events





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


framework interview introduction version community tool opinion conference voicesoftheelephpant security podcast release symfony example series language library laravel composer list

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