PHP Classes

Another simple MVC: Model view controller framework implementation

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 55%Total: 3,488 All time: 967 This week: 74Up
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: 278 Up13 in France France Up

  Files folder image Files (15)  
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 (15)  /  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 (15)  /  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 (15)  /  models  
File Role Description
  Plain text file Employees.php Class exemple model

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

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

  Files folder image Files (15)  /  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 (15)  /  templates  
File Role Description
  Accessible without login Plain text file hello.tpl Data exemple template

  Files folder image Files (15)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:3,488
This week:0
All time:967
This week:74Up
User Ratings User Comments (3)
 All time
Utility:81%StarStarStarStarStar
Consistency:78%StarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:55%StarStarStar
Rank:1898
 
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