PHP MVC Primer Tutorial

PHP MVC Primer Tutorial

PHP MVC Primer Tutorial

Today’s tutorial creates an MVC website in PHP. MVC stands for Model/View/Controller web design architecture methodology. Even if you lack skills in the M[odel] bit of this software technique (and the experts recommend a “fat” M[odel] element to your design … guess we should be asking you know who, perhaps?) In a previous relevant (for compare and contrast purposes) ASP.Net MVC Primer Tutorial we saw MVC principles in action with another server-side language, ASP.Net, and perhaps you’d like to compare and contrast MVC on these two platforms? With either platform, MVC has that great advantage for business that you can compartmentalize the work between the model, view and controller requirements, and have coders independent, yet together, developing websites effectively and efficiently. Let’s see what Wikipedia says about MVC below.

Model–view–controller (MVC) is a software architecture pattern which separates the representation of information from the user’s interaction with it.[1][2] The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants. The controller mediates input, converting it to commands for the model or view.[3]

In the meantime enjoy this tutorial showing you the great MVC methodology for the creation of PHP websites.

Enjoy the tutorial, and see MVC-inspired downloadable PHP programming source codes below.

Link to MVC information from Wikipedia (as per quote above).

Will leave you with a good tutorial link about MVC for PHP.


Previous relevant (for compare and contrast purposes) ASP.Net MVC Primer Tutorial is shown below.

ASP.Net MVC Primer Tutorial

ASP.Net MVC Primer Tutorial

Today’s tutorial creates an MVC website in ASP.Net with Microsoft Visual Studio (2010 Express). MVC stands for Model/View/Controller web design architecture methodology. Even if you lack skills in the M[odel] bit of this software technique (and the experts recommend a “fat” M[odel] element to your design … guess we should be asking you know who, perhaps?) MVC can be great for ASP.Net projects involving websites involving users who log in (ie. membership websites), where you can have the whole registration/forgot-password/remember-me/log-in/log-out methods coded in seconds. Let’s see what Wikipedia says about MVC below.

Model–view–controller (MVC) is a software architecture pattern which separates the representation of information from the user’s interaction with it.[1][2] The model consists of application data, business rules, logic, and functions. A view can be any output representation of data, such as a chart or a diagram. Multiple views of the same data are possible, such as a bar chart for management and a tabular view for accountants. The controller mediates input, converting it to commands for the model or view.[3]

In the meantime enjoy this tutorial showing you the great MVC methodology for the creation of ASP.Net websites using Microsoft Visual Studio (Express).

Downloadable ASP.Net (VB.Net) Controller programming source code here for HomeController.vb after changes and HomeController.vb before changes (for your comparison).

Downloadable ASP.Net configuration file here for Web.config after changes and Web.config before changes (for your comparison).

Downloadable ASP.Net Content programming CSS code here for Site.css after changes and Site.css before changes (for your comparison).

Downloadable ASP.Net Content Master Page source code here for Site.Master after changes and Site.Master before changes (for your comparison).

Downloadable ASP.Net View Page source code here for Index.aspx after changes and Index.aspx before changes (for your comparison).

Downloadable ASP.Net View Page source code here for About.aspx after changes and About.aspx before changes (for your comparison).

Downloadable ASP.Net View Page source code here for Contact.aspx as created for this tutorial (via copy and amend method).

Downloadable ASP.Net View Page source code here for Service.aspx as created for this tutorial (via add new View method 1 of 2).

Downloadable ASP.Net View Page source code here for News.aspx as created for this tutorial (via copy and amend method).

Downloadable ASP.Net View Page source code here for Guestbook.aspx as created for this tutorial (via add new View method 2 of 2).

Downloadable ASP.Net View Page source code here for Links.aspx as created for this tutorial (via copy and amend method).

Link to MVC information from Wikipedia (as per quote above).

Will leave you with good Microsoft link about MVC.

If this was interesting you may be interested in this too.


If this was interesting you may be interested in this too.

This entry was posted in eLearning, Software, Tutorials and tagged , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *