PHP Classes
elePHPant
Icontem

MVC 4 Dummies: Web development PHP MVC framework

Recommend this page to a friend!
  Info   View files Documentation   View files View files (154)   DownloadInstall with Composer Download .zip   Reputation   Support forum (1)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-03-13 (1 year ago) RSS 2.0 feedStarStarStarStar 71%Total: 700 All time: 4,493 This week: 1,099Up
Version License PHP version Categories
mvc-4-dummies 0.1GNU General Publi...5.4PHP 5, Libraries, Design Patterns
Description Author

This package is a Web development PHP MVC framework.

It provides a base class to implement controllers, router, database access using MySQL, error handling, and view template engine.

The template engine extends the Smarty template engine also included in the package.

Picture of Ali Sharifi
  Performance   Level  
Innovation award
Innovation award
Nominee: 1x

Details

PHP MVC 4 Dummies

A Simple PHP MVC Framewok

make Hello World

edit /routes.php

Router::get("/","HomeController","index");

in /controllers make HomeController.php

class HomeController extends BaseController
{
      public function index(){
          $this->templateEngine->assign('greeting','hello world');
          $this->templateEngine->display('home.tpl');
      }  
}

in /views/templates make home.tpl

<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>hello world</title>
</head>
<body>
    <h1>{$greeting}</h1>
</body>
</html>

  Files folder image Files  
File Role Description
Files folder imageassets (1 directory)
Files folder imagebiz (1 file, 1 directory)
Files folder imageconf (3 files)
Files folder imagecontrollers (3 files)
Files folder imagecore (6 files, 1 directory)
Files folder imagelibs (1 directory)
Files folder imagemodels (1 file)
Files folder imageviews (4 directories)
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Image file favicon.ico Icon Icon image
Accessible without login Plain text file index.php Example Sample output
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data
Accessible without login Plain text file routes.php Output Sample output

 Version Control Unique User Downloads Download Rankings  
 100%
Total:700
This week:0
All time:4,493
This week:1,099Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:71%StarStarStarStar
Rank:249