I have 3 controllers doing exactly the same, calling the same models and views. But I have to create three different controllers purposely.
Is there any way of extending one controller into another? Or calling a controller function into another? Or should I create a library for it and use it in my controllers?
Please suggest me the best approach.
I am not that familiar with CodeIgniter, but you can try to create a base class controller that contains the functionality you need, and subclass this controller for the actual controllers: