myclassphp / app
The MyClassPHP Framework..
v3.0
2017-03-25 09:01 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-05-07 15:48:12 UTC
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