search

Home  >  Q&A  >  body text

MVC custom framework

3.pngWhere does this $class variable come from, and this variable also stores the path, why is this?

芯灯芯灯1155 days ago748

reply all(2)I'll reply

  • autoload

    autoload2021-09-15 14:22:55

    Um, custom method, do you understand? As the name suggests, I stipulate how this variable must behave when it is passed in. If it does not follow my requirements, executing this method will fail. If you want to execute my method, you must listen to me

    reply
    1
  • 芯灯

    OK, thanks!

    芯灯 · 2021-09-15 14:46:39
  • Cancelreply