Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (154) | Download .zip | Reputation | Support forum (1) | Blog | Links |
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 |
Version | License | PHP version | Categories | |||
mvc-4-dummies 0.1 | GNU General Publi... | 5.4 | PHP 5, Libraries, Design Patterns |
Description | Author | |
This package is a Web development PHP MVC framework. |
A Simple PHP MVC Framewok
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 |
File | Role | Description | ||
---|---|---|---|---|
assets (1 directory) | ||||
biz (1 file, 1 directory) | ||||
conf (3 files) | ||||
controllers (3 files) | ||||
core (6 files, 1 directory) | ||||
libs (1 directory) | ||||
models (1 file) | ||||
views (4 directories) | ||||
.htaccess | Data | Auxiliary data | ||
favicon.ico | Icon | Icon image | ||
index.php | Example | Sample output | ||
LICENSE | Lic. | Auxiliary data | ||
README.md | Doc. | Auxiliary data | ||
routes.php | Output | Sample output |
Files | / | conf |
File | Role | Description |
---|---|---|
app.php | Conf. | Sample output |
forms.php | Conf. | Sample output |
messages.php | Conf. | Sample output |
Files | / | controllers |
File | Role | Description |
---|---|---|
BaseController.php | Class | Class source |
HomeController.php | Class | Class source |
SimpleFormController.php | Class | Class source |
Files | / | core |
File | Role | Description | ||
---|---|---|---|---|
helper (1 file) | ||||
autoload.php | Aux. | Class source | ||
ErrorHandler.php | Class | Class source | ||
MysqlDBHandler.php | Class | Class source | ||
Router.php | Class | Class source | ||
TemplateEngine.php | Class | Class source | ||
URL.php | Class | Class source |
Files | / | libs | / | smarty |
File | Role | Description | ||
---|---|---|---|---|
plugins (47 files) | ||||
sysplugins (70 files) | ||||
debug.tpl | Data | Auxiliary data | ||
Smarty.class.php | Class | Class source | ||
SmartyBC.class.php | Class | Class source |
Files | / | libs | / | smarty | / | plugins |
Files | / | libs | / | smarty | / | sysplugins |
Files | / | views |
File | Role | Description | ||
---|---|---|---|---|
configs (1 file) | ||||
my_plugins (1 file) | ||||
plugins (6 files) | ||||
templates (3 files) |
Files | / | views | / | my_plugins |
File | Role | Description |
---|---|---|
function.load_presentation_object.php | Aux. | Auxiliary script |
Files | / | views | / | plugins |
File | Role | Description |
---|---|---|
cacheresource.apc.php | Class | Auxiliary script |
cacheresource.memcache.php | Class | Auxiliary script |
cacheresource.mysql.php | Class | Auxiliary script |
resource.extendsall.php | Class | Auxiliary script |
resource.mysql.php | Class | Auxiliary script |
resource.mysqls.php | Class | Auxiliary script |
Files | / | views | / | templates |
File | Role | Description |
---|---|---|
home.tpl | Data | Auxiliary data |
layout.tpl | Data | Auxiliary data |
simple-form.tpl | Data | Auxiliary data |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.