This commit is contained in:
WispX
2019-02-16 13:01:42 +08:00
parent fb0b87973f
commit 99c30392ea
2 changed files with 3 additions and 1 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ class Local implements Driver
*/
public function __construct($options = [])
{
$this->rootPath = Env::get('root_path') . 'public' . DIRECTORY_SEPARATOR;
$this->rootPath = ROOT_PATH;
$this->options = $options;
}
+2
View File
@@ -12,6 +12,8 @@
// [ 应用入口文件 ]
namespace think;
define('ROOT_PATH', __DIR__ . DIRECTORY_SEPARATOR);
// 加载基础文件
require __DIR__ . '/../thinkphp/base.php';