MY_Controller class not found

后端 未结 3 1197
予麋鹿
予麋鹿 2021-01-28 18:43

The main thing i want to solve is to check user session when somebody want to access admin panel. I\'ve created MY_Controller class and placed it in library.

cla         


        
3条回答
  •  遇见更好的自我
    2021-01-28 18:57

    I got this error on a project as I'm learning CodeIgniter. My solution was to, to use your project as an example, require_once('MY_Controller'); at the top my new Controller.

    That way I didn't have to move my file to the core and I could keep it in my directory of Controllers.

提交回复
热议问题