My config.php file is different from yours. There is no configuration at all.
王志庆
王志庆 2018-03-06 13:29:12
0
2
1194

I tried according to your operation, use think\Config;'s reference, but the static method could not be adjusted. Then I went to look in this class and found that the method inside was not a static method. Then I instantiated it and continued to call the get method. It turned out that my configuration items were empty and there was no configuration at all. I saw that you were also a new framework, and then there were configurations.

王志庆
王志庆

reply all(1)
Peter_Zhu

Your version is not 5.1

The 5.1 version does not have a config.php file, instead it is in the config directory

  • reply The same operation as the teacher, why did I download version 5.0?
    小金 author 2018-04-20 12:33:20
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!