how to make core controller codeigniter 3 more than 1
- Create a new file named MY_Controller.php in application/core folder.
- Define the class MY_Controller and extend it from CI_Controller.
- Add a constructor method to MY_Controller class for any common functionality needed for all controllers.
- Extend your application controllers from MY_Controller to inherit the shared functionality.
Hope this helps!