aid

Sunday, 12 April 2015

mvc structure in php

MVC is a design outline. A Design outline is a code structure that allows for coding frameworks to be quickly. You might think of a design outline as a essential or framework on which your application will be make.

MVC framework that is make in this tutorial, several key points will be raised. The first is the frameworks needs a single point of entry, ie: index.php. This is where all access to the site must be controlled from. To ensure that a single point of entry is maintained, htaccess can be utilized to ensure no other file may be accessed, and that we hide the index.php file in the url. Thus creating SEO and user friendly URL's.

It is beyond the scope of this tutorial to show how to set up htaccess and mod_rewrite and more information on these can be gained from the Apache manual. 

No comments:

Post a Comment