The ___ROOT___ constant is not defined in thinkphp5.0.9, how to solve it
大家讲道理
大家讲道理 2017-06-24 09:42:27
0
1
1273

Use of undefined constant ROOT - assumed '__ROOT__'
This is an error message. I am new to 5.0 and I don’t know if the constants in 5.0 can be used. Can they be redefined?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
扔个三星炸死你

tp5 needs to be defined by yourself

直接在配置文件中添加:
'parse_str'=>[
'__PUBLIC__'=>'/public/',
'__ROOT__' => '/',
]
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template