how to make core controller codeigniter 3 more than 1

  1. Create a new file named MY_Controller.php in application/core folder.
  2. Define the class MY_Controller and extend it from CI_Controller.
  3. Add a constructor method to MY_Controller class for any common functionality needed for all controllers.
  4. Extend your application controllers from MY_Controller to inherit the shared functionality.

Hope this helps!