search

Home  >  Q&A  >  body text

My config.php file is different from yours. There is no configuration at all.

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.

王志庆王志庆2499 days ago1220

reply all(2)I'll reply

  • 天蓬老师

    天蓬老师2018-03-29 22:38:47

    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
    0
  • 小金

    The same operation as the teacher, why did I download version 5.0?

    小金 · 2018-04-20 12:33:20
  • Cancelreply