PHP Classes
elePHPant
Icontem

Another simple MVC: Model view controller framework implementation

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2010-02-24 (4 years ago) RSS 2.0 feedStarStarStar 59%Total: 3,191 This week: 1All time: 1,041 This week: 1,259Down
Version License PHP version Categories  
mvc 1GNU General Publi...5PHP 5, Libraries, Design Patterns
Description Author  

This package provides a model view controller framework implementation.

It provides a database access class, a front controller class and a template processing class.

to get started edit the .htaccess and make the rewrite base fit your server
then edit /config/define.php to set your database access.

by now what you may do is: set up a nice error handler function (http://php.net/manual/en/function.set-error-handler.php) and if you need it setup a cache handler too(may record an ob_start callback, and gzencode the content you are sending to browser).


moved here : http://github.com/nicolaslattuada/minimal-php-mvc/

Picture of lattuada
Name: lattuada <contact>
Classes: 3 packages by
Country: France France
Age: ???
All time rank: 55526 in France France
Week rank: 92 Up4 in France France Up

  Files folder image Files  
File Role Description
Files folder imageclasses (5 files)
Files folder imageconfig (2 files)
Files folder imagemodels (1 file)
Files folder imagemodules (1 directory)
Files folder imagetemplates (1 file)
Files folder imagewww (2 files)

  Files folder image Files  /  classes  
File Role Description
  Plain text file Base.php Class abstract controller
  Plain text file Db.php Class database abstraction layer
  Plain text file Front.php Class front controller class
  Plain text file Template.php Class template class
  Plain text file View.php Class view class

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file defines.php Conf. configuring the app
  Accessible without login Plain text file startup.php Aux. definig some autoload and data filtering

  Files folder image Files  /  models  
File Role Description
  Plain text file Employees.php Class exemple model

  Files folder image Files  /  modules  
File Role Description
Files folder imageindex (1 file, 1 directory)

  Files folder image Files  /  modules  /  index  
File Role Description
Files folder imageviews (3 files)
  Plain text file Index.php Class exemple controller

  Files folder image Files  /  modules  /  index  /  views  
File Role Description
  Accessible without login Plain text file main.phtml Example exemple view script
  Accessible without login Plain text file test.phtml Example exemple view script
  Accessible without login Plain text file test2.phtml Example exemple view script

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file hello.tpl Data exemple template

  Files folder image Files  /  www  
File Role Description
  Accessible without login Plain text file .htaccess Data htaccess
  Accessible without login Plain text file index.php Example index of the app

 Version Control Unique User Downloads Download Rankings  
 0%Total:3,191All time:1,041
 This week:1This week:1,259Down
User Ratings User Comments (3)  
 All time
Utility:87%StarStarStarStarStar
Consistency:83%StarStarStarStarStar
Documentation:-
Examples:79%StarStarStarStar
Tests:-
Videos:-
Overall:59%StarStarStar
Rank:903