codeigniter MY_Controller not found

后端 未结 5 513
误落风尘
误落风尘 2021-01-02 10:58

i’m using the Codeigniter.2.1.3 for a website, so i need to extend the CI_Controller so i can add a method to be executed with all controllers so i did what’s in the user_gu

5条回答
  •  北海茫月
    2021-01-02 11:37

    Late with this answer, but I got the

    "Fatal error: Class ‘MY_Controller’ not found" error

    when I had a controller (.php) file by the same name at the web root instead of the application/controllers directory.

    Don't know how it got there, actually, but the problem went away when I deleted it.

提交回复
热议问题