PHP Classes

Simple PHP Framework: Simple MVC framework to build PHP applications

Recommend this page to a friend!
  Info   View files Example   Demos   View files View files (14)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 359 This week: 1All time: 6,919 This week: 560Up
Version License PHP version Categories
root_v2 1.0.0Freeware5PHP 5, Libraries, Design Patterns
Description 

Author

This package is a simple MVC framework to build PHP applications.

It provides several base classes for different aspects that are useful in most Web applications.

Currently it provides a base root class with general purpose utility functions, a base controller class for implementing the application actions, and a template class to generate the output of each controller action.

Picture of Vishv Sahdev
  Performance   Level  
Name: Vishv Sahdev <contact>
Classes: 13 packages by
Country: India India
Age: 52
All time rank: 51530 in India India
Week rank: 106 Up8 in India India Up
Innovation award
Innovation award
Nominee: 7x

Example

<?
/*
http://v23.in
date: 8 Oct 2017
example file
Example-------------------------------------
//(same directory name and controller name)
/wallpaper/index.html?x=200&y=300
or
/wallpaper/index.html?200&300
or
/wallpaper/index.html?200&y=300
or
/wallpaper/index.html/200/300/optional
/wallpaper/start.php
--------------------------------------------
*/
class wallpaper extends controller{
function
index_html($one,$two,$three='ok'){
$out['maincontent'] = "$one,$two,$three";
echo
$this->template->render(TEMPLATE."main.php",array("output"=>$out));
}

function
start_php(){
$out['maincontent'] = "<h1> Start.php file</h1>";
echo
$this->template->render(TEMPLATE."main.php",array("output"=>$out));
}

}


  php frameworkExternal page  

Open in a separate window

  Files folder image Files  
File Role Description
Files folder imageapplication (3 directories)
Files folder imagepublic_html (2 files)

  Files folder image Files  /  application  
File Role Description
Files folder imageclass (5 files)
Files folder imagecontroller (2 directories)
Files folder imagetemplate (1 file)

  Files folder image Files  /  application  /  class  
File Role Description
  Plain text file aed-class.php Appl. add edit del database file
  Plain text file db_config.php Conf. config file db
  Plain text file root_v2.php Class root version 2.0
  Plain text file template.php Class template class
  Plain text file _controller.php Class controller file

  Files folder image Files  /  application  /  controller  
File Role Description
Files folder imageroot (2 files)
Files folder imagewallpaper (4 files)

  Files folder image Files  /  application  /  controller  /  root  
File Role Description
  Plain text file root_default.php Example root file example
  Plain text file test.php Example test example

  Files folder image Files  /  application  /  controller  /  wallpaper  
File Role Description
  Plain text file database.php Example database example
  Plain text file show.php Example example show
  Plain text file wallpaper.php Example example wallpaper
  Plain text file wallpaper_default.php Example default wallpaper page example

  Files folder image Files  /  application  /  template  
File Role Description
  Plain text file main.php Output main template file

  Files folder image Files  /  public_html  
File Role Description
  Plain text file .htaccess Appl. ht access file
  Plain text file index.php Appl. index file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:359
This week:1
All time:6,919
This week:560Up