[eluser]Mackstar[/eluser]
I have a subfolder in my controllers directory called unit testing,
in here I have controllers for that purpose.. I realized 3 methods are repeater in each of them which is not DRY enough for me. I wanted to make a custom controller which could be inherited on just these controllers and not the other controllers in my app...
So the MY_Controller concept I couldn't get working as it would apply to all controllers.
I tried loading a test_controller class using hooks but pre_system is loaded before the controller class recognized and pre_controller already has the controller file requested even though the object hasn't been constructed so gives me errors...
Is there another way to do this?? Without altering the CI system files...
Many thanks
Richard