News Feed
Sections




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

Paperbagcoder:
MVC and PHP
May 30, 2006 @ 06:08:17

In This quick post from Paperbagcoder, he gives basic example of what a Model-View-Controller kind of architecture is all about along with some code as an example.

Model view controller architecture has been a staple of desktop application development for a hell of a long time. I dont know when exactly it became a buzz word in web development but I feel pretty safe saying it is the new hotness. And why not, with the increasing complexity of these newfangled web applications and websites in general the encapsulation and flexibility of mvc design makes darn good sense (buzzwords bolded for the executives out there). But what happens when a good design idea meets a really really evil language...

In his perspective, PHP isn't neccessarily evil - it just allows people to "be evil" and write bad code way too easily. He does note, though, that it is possible to write good PHP code without much effort, especially if you use a correct MVC mentatlity. His example selects car data from the database and makes a call to update the information before spitting it out to the template to be rendered.

1 comment voice your opinion now!
model view controller mvc tutorial seperation model view controller mvc tutorial seperation


blog comments powered by Disqus

Similar Posts

HowTo Forge: Fedora 8 Server Setup - LAMP, Email, DNS, FTP, ISPConfig - Page 6

Gilles Mergoil: Laravel 4 on Google AppEngine for PHP

BillS' IIS Blog: How to install FastCGI and PHP on IIS7 Beta 3 (Video)

Community News: Sara Golemon & Christopher Jones - First Day Summaries of php|works

YoungCoders.com: The PHP Construct You've Never Used


Community Events





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


code community deployment podcast symfony development release threedevsandamaybe zendserver series framework language bugfix introduction interview list conference tips laravel api

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