News Feed
Sections




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

DevShed:
Generating View from MySQL to Simulate the Model-View-Controller Schema in PHP
August 21, 2006 @ 08:46:30

DevShed has posted part three in their "Simulating the Model-View-Controller Schema in PHP" series today, this time focusing on the last of the three, the View.

All right, after refreshing the topics covered previously, as well as clarifying some key concepts with reference to the concrete subject of this series, this journey will continue by constructing yet another practical example to expand your overall knowledge of object-based programming with PHP. In particular, it's designed to show you to use a MVC-driven relationship in another real-world situation.

If you're wondering to what other cases this relationship can be specifically applied, then I have good news for you. In this final article, I'll show you how to implement the MVC schema, in order to generate different outputs (or views) from a given MySQL data set.

They start over with their code, generating a new schema based around a MySQL processing class. The controller pulls its information from the database (our model) as to how the results should be displayed. Next they describe the model to help interface with the actual table and finishing it off with the output class, resulting in either XML or plain-text output of the user information.

1 comment voice your opinion now!
model view controller simulate mysql part3 schema tutorial model view controller simulate mysql part3 schema tutorial


blog comments powered by Disqus

Similar Posts

SitePoint Web Foundations Blog: Quick Tip: Install Zend Server 7 on an Ubuntu 14.04 Vagrant Box

Brandon Savage's Blog: Exceptional PHP: Nesting Exceptions In PHP

DevShed: A Custom Exception Class for Dynamic Twitter Signature Images with PHP

Evert Pot's Blog: HTTP Basic and Digest authentication with PHP

SitePoint PHP Blog: Simple Captchas with PHP and GD


Community Events

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


api unittest library voicesoftheelephpant development threedevsandamaybe extension release wordpress introduction laravel5 language interview feature laravel framework series opinion podcast community

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