Ticker

6/recent/ticker-posts

Ad Code

Responsive Advertisement

Call to a member function getBasePath() on null

thinkphp6的basepath在哪设置!
.env

APP_DEBUG = true

[APP]
DEFAULT_TIMEZONE = Asia/Shanghai
base_path=D:/phpstudy_pro/WWW/financetown/app/
//大写:BASE_PATH也不管用

config/app.php

return [
    // 应用地址
    'app_host'         => env('app.host', ''),
    // 禁止URL访问的应用列表(自动多应用模式有效)
    'deny_app_list'    => [],
    // 显示错误信息
    'show_error_msg'   => true,
    'base_path'        => 'D:/phpstudy_pro/WWW/financetown/app/'
];

异常的全部轨迹

Exception trace:
 () at D:\phpstudy_pro\WWW\financetown\vendor\topthink\framework\src\think\console\command\Make.php:72
 think\console\command\Make->getPathName() at D:\phpstudy_pro\WWW\financetown\vendor\topthink\framework\src\think\console\command\Make.php:36
 think\console\command\Make->execute() at D:\phpstudy_pro\WWW\financetown\vendor\haojohnny\tp6-curd\src\Make.php:45
 Haojohnny\Tp6Curd\Make->executeBuild() at D:\phpstudy_pro\WWW\financetown\vendor\haojohnny\tp6-curd\src\Command\Curd.php:28
 Haojohnny\Tp6Curd\Command\Curd->execute() at D:\phpstudy_pro\WWW\financetown\vendor\topthink\framework\src\think\console\Command.php:210
 think\console\Command->run() at D:\phpstudy_pro\WWW\financetown\vendor\topthink\framework\src\think\Console.php:655
 think\Console->doRunCommand() at D:\phpstudy_pro\WWW\financetown\vendor\topthink\framework\src\think\Console.php:314
 think\Console->doRun() at D:\phpstudy_pro\WWW\financetown\vendor\topthink\framework\src\think\Console.php:251
 think\Console->run() at D:\phpstudy_pro\WWW\financetown\think:10

Enregistrer un commentaire

0 Commentaires