PHP Classes

PHP Very Simple MVC: Framework to route requests to controller classes

Recommend this page to a friend!
  Info   View files Example   View files View files (12)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 58 All time: 10,517 This week: 673Up
Version License PHP version Categories
php-very-simple-mvc 1.0MIT/X Consortium ...5HTTP, PHP 5, Libraries, Design Patterns
Description 

Author

This package provides a framework to route requests to controller classes.

It provides a base controller class to help load specific model classes and view scripts.

The package also provides an application class that can extract from the request URL the controller class name that should be loaded and called to handle the current request.

It can also load an error page script when the request URL does not pass the name of an existing controller class to handle the current request.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq is available for providing paid consulting. Contact Muhammad Umer Farooq .
Classes: 52 packages by
Country: Pakistan Pakistan
Age: 22
All time rank: 84411 in Pakistan Pakistan
Week rank: 280 Up6 in Pakistan Pakistan Up
Innovation award
Innovation award
Nominee: 6x

Example

<?php

require_once "../app/init.php";
$app = new App();


Details

php-very-simple-mvc


  Files folder image Files  
File Role Description
Files folder imageapp (2 files, 5 directories)
Files folder imagepublic (2 files)
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  app  
File Role Description
Files folder imagecontrollers (1 file)
Files folder imageerrors (1 directory)
Files folder imagemodels (1 file)
Files folder imagesystem (2 files)
Files folder imagetheme (1 directory)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file init.php Aux. Auxiliary script

  Files folder image Files  /  app  /  controllers  
File Role Description
  Plain text file home.php Class Class source

  Files folder image Files  /  app  /  errors  
File Role Description
Files folder imagepages (1 file)

  Files folder image Files  /  app  /  errors  /  pages  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  app  /  models  
File Role Description
  Plain text file home.php Class Class source

  Files folder image Files  /  app  /  system  
File Role Description
  Plain text file App.php Class Class source
  Plain text file controller.php Class Class source

  Files folder image Files  /  app  /  theme  
File Role Description
Files folder imagebasic (1 file)

  Files folder image Files  /  app  /  theme  /  basic  
File Role Description
  Accessible without login Plain text file home.php Aux. Auxiliary script

  Files folder image Files  /  public  
File Role Description
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file index.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:58
This week:0
All time:10,517
This week:673Up