myclassphp / src
The MyClassPHP Framework..
v3.2.2
2020-03-20 08:49 UTC
Requires
- php: >=5.5.0
- ext-gd: *
- ext-json: *
- ext-mbstring: *
- ext-mysqli: *
- ext-pdo: *
- ext-redis: *
- smarty/smarty: ~3.1.33
README
MyClassPHP是一个开源、免费的学习框架。官方交流群 438695935
在线文档
更新日志
安装、使用
安装框架
git clone https://github.com/a1586256143/MyClassPHP.git
下拉composer所需组件
composer install
例如:在controllers 建立Index.php,代码如下
namespace controllers;
use system\Base;
class Hello extends Base{
public function index(){
return 'Hello MyClassPHP';
}
}
打开 config/routes.php,追加一条路由
'/hello' => 'Hello@index'
配置完成如下
Route::add(array(
'/' => 'Index@index' ,
'/hello' => 'Hello@index'
))
运行
http://域名/hello