News Feed
Sections




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

PHPMaster.com:
The MVC Pattern and PHP, Part 1
March 05, 2013 @ 13:21:32

If you're new to the world of PHP frameworks, there's one acronym that might confuse you if you don't understand the structure - MVC. In this new tutorial on PHPMaster.com today introduces you to the MVC (Model/View/Controller) design pattern and how it's commonly implemented in PHP.

The Model-View-Control (MVC) pattern, originally formulated in the late 1970s, is a software architecture pattern built on the basis of keeping the presentation of data separate from the methods that interact with the data. In theory, a well-developed MVC system should allow a front-end developer and a back-end developer to work on the same system without interfering, sharing, or editing files either party is working on. [...] In this article, I will go the basic principles of MVC, a run through the definition of the pattern and a quick example of MVC in PHP. This is definitely a read for anyone who has never coding with MVC before or those wanting to brush up on previous MVC development skills.

He starts with an introduction of the overall structure of the pattern, how each part talks with the others. He then talks about each piece in a bit more detail and provides some code examples for some very basic MVC classes. There's no routing or anything connected to them like there would be in a framework - it's just the classes taking the others in as parameters.

0 comments voice your opinion now!
mvc designpattern introduction tutorial model view controller


blog comments powered by Disqus

Similar Posts

DevShed: Introducing SimpleXML in PHP 5

PHPMaster.com: Patterns for Flexible View Handling, Part 2 - Using Decorators

CorePHP Blog: A Guide to running Apache 2, PHP 4 & PHP 5 on Windows XP

NetTuts.com: Xdebug - Professional PHP Debugging

Refulz Blog: Traits in PHP 5.4 - Why we need Traits


Community Events





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


code project release library threedevsandamaybe bugfix framework wordpress community api list configure series podcast introduction interview language developer application laravel

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