Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
71% | Total: 773 | All time: 4,389 This week: 206 |
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 (154) |
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 (154) | / | conf |
File | Role | Description |
---|---|---|
app.php | Conf. | Sample output |
forms.php | Conf. | Sample output |
messages.php | Conf. | Sample output |
Files (154) | / | controllers |
File | Role | Description |
---|---|---|
BaseController.php | Class | Class source |
HomeController.php | Class | Class source |
SimpleFormController.php | Class | Class source |
Files (154) | / | 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 (154) | / | 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 (154) | / | libs | / | smarty | / | plugins |
Files (154) | / | libs | / | smarty | / | sysplugins |
Files (154) | / | views |
File | Role | Description | ||
---|---|---|---|---|
configs (1 file) | ||||
my_plugins (1 file) | ||||
plugins (6 files) | ||||
templates (3 files) |
Files (154) | / | views | / | my_plugins |
File | Role | Description |
---|---|---|
function.load_presentation_object.php | Aux. | Auxiliary script |
Files (154) | / | 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 (154) | / | views | / | templates |
File | Role | Description |
---|---|---|
home.tpl | Data | Auxiliary data |
layout.tpl | Data | Auxiliary data |
simple-form.tpl | Data | Auxiliary data |
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 |
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.