search

Home  >  Q&A  >  body text

Why do I get an error when I make the framework according to the courseware?

Prompt studentModel cannot find model when inheriting. In fact, I am also quite surprised. When I simply wrote it before, the index referenced several files at the same time, so it was easier to understand. As a result, I didn’t quite understand it after writing base.php formally. How did he load all these files

以坦然姿态...以坦然姿态...2462 days ago1047

reply all(1)I'll reply

  • 无忌哥哥

    无忌哥哥2018-06-27 09:01:21

    When you use index, do you also inherit Controller? When you use base, base inherits Controller, and then index inherits Base. The effect is the same. Using Base means inheriting and inheriting, which is not difficult to understand.

    reply
    0
  • Cancelreply