移动安装目录,支持根目录index.php访问,也可以像tp5一样只对外开放public一个目录

This commit is contained in:
xurongyao 2018-09-16 21:47:37 +08:00
parent 0b7d4bf728
commit 094454117c
3 changed files with 9 additions and 9 deletions

View File

@ -144,13 +144,13 @@ return [
// 视图输出字符串内容替换
'view_replace_str' => [
'{__ADMIN_PATH}'=>DS.PUBILC_PATH.'system/',
'{__FRAME_PATH}'=>DS.PUBILC_PATH.'system/frame/',
'{__PLUG_PATH}'=>DS.PUBILC_PATH.'static/plug/',
'{__MODULE_PATH}'=>DS.PUBILC_PATH.'system/module/',
'{__STATIC_PATH}'=>DS.PUBILC_PATH.'static/',
'{__PUBLIC_PATH}'=>DS.PUBILC_PATH,
'{__WAP_PATH}'=>DS.PUBILC_PATH.'wap/first/static/'
'{__ADMIN_PATH}'=>PUBILC_PATH.'system/',
'{__FRAME_PATH}'=>PUBILC_PATH.'system/frame/',
'{__PLUG_PATH}'=>PUBILC_PATH.'static/plug/',
'{__MODULE_PATH}'=>PUBILC_PATH.'system/module/',
'{__STATIC_PATH}'=>PUBILC_PATH.'static/',
'{__PUBLIC_PATH}'=>PUBILC_PATH,
'{__WAP_PATH}'=>PUBILC_PATH.'wap/first/static/'
],
// 默认跳转页面对应的模板文件
'dispatch_success_tmpl' => THINK_PATH . 'tpl' . DS . 'dispatch_jump.tpl',

View File

@ -24,6 +24,6 @@ if(file_exists("./public/install/") && !file_exists("./public/install/install.lo
// 定义应用目录
define('APP_PATH', __DIR__ . '/application/');
//静态文件目录
define('PUBILC_PATH', 'public/');
define('PUBILC_PATH', '/public/');
// 加载框架引导文件
require __DIR__ . '/thinkphp/start.php';

View File

@ -24,6 +24,6 @@ if(file_exists("./install/") && !file_exists("./install/install.lock")){
// 定义应用目录
define('APP_PATH', __DIR__ . '/../application/');
//静态文件目录
define('PUBILC_PATH', '');
define('PUBILC_PATH', '/');
// 加载框架引导文件
require __DIR__ . '/../thinkphp/start.php';