Home  >  Q&A  >  body text

MVC framework related issues

7.pngWhat is the role of $class? Other files do not have the $class variable. How does it get the path of other files?

芯灯芯灯1153 days ago901

reply all(1)I'll reply

  • autoload

    autoload2021-09-15 18:05:55

    First of all, you need to understand what is the role of automatic loading? When you introduce a class, you are instantiating an object new People. When you use this class, aren't you providing parameters for your automatic loading method?

    reply
    1
  • Cancelreply