Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2015-03-13 (1 year ago)  | |    71% | | Total: 700 | | All time: 4,493 This week: 1,099 |
|
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. | |
 |
|
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>
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.