search

Home  >  Q&A  >  body text

Why am I loading the convention.php configuration file under thinkphp while yours is the configuration file under application?

namespace app\index\controller;

use think\Controller;//引用命名空间

class Index extends Controller

{

public function index(){

dump(\think\config::get());

}

}


酱紫酱紫2086 days ago1301

reply all(1)I'll reply

  • 殘留の回憶

    殘留の回憶2019-05-25 09:16:20

    Are you using the same version of TP? .

    reply
    0
  • Cancelreply