When:
Class My_controller extends ci_controller{....}
Controller folder:
Class Add_shop extends my_controller{....}
This is all normal and able to access my methods and properties for customizing My_controller and framework Ci_contorller
However, I would like to achieve:
Class My_controller extends ci_controller{....}
Class My_shop_base extends My_controller {...}
Controller folder:
Class Add_shop extends My_shop_base {...}
Like this to indirectly inherit Ci_controller, but the project will be error: Fatal error:class ' my_shop_base ' not found
Reply to discussion (solution)
Obviously, you didn't load the definition of my_shop_base when you defined Add_shop.
Obviously, you didn't load the definition of my_shop_base when you defined Add_shop.
Positive solution, sometimes complicate the framework will forget the basic principle of PHP ~
Note: You can find relevant code for loading custom classes in Ci/lib/codeigniter.