2 Star 2 Fork 0

纸喵软件 / frame-php

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Run.php 695 Bytes
Copy Edit Web IDE Raw Blame History
<?php
/**
* 纸喵php框架总入口
* Created by PhpStorm.
* User: 倒霉狐狸
* Date: 2018-08-06
* Time: 17:46
*/
namespace zhimiao;
// 定义纸喵php框架根目录
define('ZHIMIAO_ROOT', __DIR__);
defined('ROOT_PATH') or define('ROOT_PATH', ZHIMIAO_ROOT. '/../../..');
class Run {
public function __construct()
{
Config::init();
Route::init();
$Reflection = new Reflection();
$param = array_merge(Request::get(), Request::post());
$data = $Reflection->invokeMethod(array_values(Route::getMeta()), $param);
if(!is_null($data)) {
call_user_func_array(["\zhimiao\Response", "json"], (array) $data);
}
}
}

Comment ( 0 )

Sign in for post a comment

PHP
1
https://gitee.com/zhimiao/frame-php.git
git@gitee.com:zhimiao/frame-php.git
zhimiao
frame-php
frame-php
master

Search