初始化项目:添加后端代码、ThinkPHP框架、前端资源
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------
|
||||
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
||||
// +----------------------------------------------------------------------
|
||||
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
||||
// +----------------------------------------------------------------------
|
||||
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
||||
// +----------------------------------------------------------------------
|
||||
// | Author: liu21st <liu21st@gmail.com>
|
||||
// +----------------------------------------------------------------------
|
||||
|
||||
namespace think;
|
||||
// 1. 加载基础文件
|
||||
require __DIR__ . '/base.php';
|
||||
|
||||
global $_GPC;
|
||||
|
||||
|
||||
defined('MODULE_NAME') or define('MODULE_NAME',$_GPC['m']);
|
||||
|
||||
|
||||
App::run()->send();
|
||||
// 执行应用并响应
|
||||
//App::run()->path(dirname(__DIR__) . '/application/')->bind("{$mod}/{$opt}/{$act}")->run()->send();
|
||||
|
||||
Reference in New Issue
Block a user