正在显示
1 个修改的文件
包含
30 行增加
和
0 行删除
public/install.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +// +---------------------------------------------------------------------- | ||
4 | +// | ThinkPHP [ WE CAN DO IT JUST THINK ] | ||
5 | +// +---------------------------------------------------------------------- | ||
6 | +// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved. | ||
7 | +// +---------------------------------------------------------------------- | ||
8 | +// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 ) | ||
9 | +// +---------------------------------------------------------------------- | ||
10 | +// | Author: liu21st <liu21st@gmail.com> | ||
11 | +// +---------------------------------------------------------------------- | ||
12 | +// [ 安装文件 ] | ||
13 | +// 建议安装完成后移除此文件 | ||
14 | +// 定义应用目录 | ||
15 | +define('APP_PATH', __DIR__ . '/../application/'); | ||
16 | + | ||
17 | +// 加载框架引导文件 | ||
18 | +require __DIR__ . '/../thinkphp/base.php'; | ||
19 | + | ||
20 | +// 绑定到安装控制器 | ||
21 | +\think\Route::bind('\app\admin\command\Install', 'controller'); | ||
22 | + | ||
23 | +// 开启路由 | ||
24 | +\think\App::route(true); | ||
25 | + | ||
26 | +// 设置根url | ||
27 | +\think\Url::root(''); | ||
28 | + | ||
29 | +// 执行应用 | ||
30 | +\think\App::run()->send(); |
-
请 注册 或 登录 后发表评论