CodeIgniter 2: How to extend CI_Controller multiple times?

前端 未结 5 1074
野性不改
野性不改 2020-12-08 10:38

I have successfully extended the CI_Controller class by creating a MY_Controller.php which I have placed in the application/core directory.

core/My_Controlle

5条回答
  •  我在风中等你
    2020-12-08 11:10

    if you want to extend another class instead of CI_controller you must include the target class. for example

    include 'auth.php';
    
    class test extends Auth
    

提交回复
热议问题