Selaa lähdekoodia

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

xurongyao 7 vuotta sitten
vanhempi
commit
8e74399af6
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      index.php

+ 1 - 1
index.php

@@ -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';