search

Home  >  Q&A  >  body text

Problem creating class library file

Teacher, when you created the Article in this section, you changed the inheritance from the controller to the base public file, but it was not there when you created the banner, and it can be opened correctly. I would like to ask if it will not affect it?

荆轲荆轲2574 days ago1237

reply all(4)I'll reply

  • 天蓬老师

    天蓬老师2017-11-14 20:55:38

    Which tutorial is this?

    reply
    0
  • 天蓬老师

    天蓬老师2017-11-14 11:39:40

    If you no longer use the global methods in Base, it is no problem to inherit the controller

    reply
    0
  • 荆轲

    Teacher, my situation here is written according to your code. If I modify it to inherit from the base, it cannot be opened normally. Then I write it according to the code in your video. Whether it is inherited from the base or the controller, it cannot be transferred correctly. , prompting that the source file cannot be found. . .

    荆轲 · 2017-11-14 11:43:20
    荆轲

    In other words, now the file that the article inherits from the base can be opened correctly, but the file that inherits the Controller cannot. In the banner file, it is the opposite. Later, the admin, category, etc., whether it was base or controller, were not working. I checked and rewritten them several times.

    荆轲 · 2017-11-14 11:46:58
  • Cancelreply