PHP Classes

Another simple MVC: Model view controller framework implementation

Recommend this page to a friend!
  Info   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum (6)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 55%Total: 3,485 This week: 1All time: 968 This week: 89Up
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: 42724 in France France
Week rank: 91 Up5 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,485
This week:1
All time:968
This week:89Up
User Ratings User Comments (3)
 All time
Utility:81%StarStarStarStarStar
Consistency:78%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1857
 
I was looking for a structure to start a new project with PHP...
11 years ago (Joao Zenha)
70%StarStarStarStar
very simple.
14 years ago (Patrício dos Santos)
62%StarStarStarStar
Really nice! The template system is small but still efficient...
14 years ago (John Doe)
57%StarStarStar