PHP Classes

Build Simple OO MVC: Implements the MVC design pattern

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2011-12-20 (4 years ago) RSS 2.0 feedNot enough user ratingsTotal: 1,324 This week: 1All time: 2,786 This week: 1,151Up
Version License PHP version Categories  
simple-mvc 1GNU General Publi...5PHP 5, Design Patterns
Description Author  

This class implements the MVC design pattern.

It provides an abstract class that should be derived to implement actual controller classes.

The base class can call the controller main function that can load any needed model classes if necessary to retrieve any model data.

The view function can load output template scripts and pass template variables in an array to be used in the template scripts.

Picture of jeffrey Afable
Name: jeffrey Afable <contact>
Classes: 4 packages by
Country: Philippines Philippines
Age: ???
All time rank: 4589 in Philippines Philippines
Week rank: 60 Up2 in Philippines Philippines Up

  Files folder image Files  
File Role Description
Accessible without login Plain text file .htaccess Data htaccess file
Plain text file model1.php Class Sample Model class
Accessible without login Plain text file view1.tpl.php Aux. Sample View page
Accessible without login Plain text file index.php Example Starter
Plain text file controller1.php Class Sample Controller
Plain text file simple_mvc.php Class Main MVC class

 Version Control Unique User Downloads Download Rankings  
 0%Total:1,324All time:2,786
 This week:1This week:1,151Up
 User Comments (1)  
simple code.
4 years ago (Jerry Andag)