PHP Classes

MVC 4 Dummies: Web development PHP MVC framework

Recommend this page to a friend!
  Info   Documentation   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 71%Total: 773 All time: 4,389 This week: 206Up
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

 

Documentation

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 (154)  
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

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  
 100%
Total:773
This week:0
All time:4,389
This week:206Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:91%StarStarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:71%StarStarStarStar
Rank:219