[eluser]Chad Altemose[/eluser]
Thanks for the help. If I leave things as i have them but make one addition to the test controller (./system/application/controllers/test.php) as you noted:
Code:
require_once(APPPATH.'libraries/ex_expenses'.EXT);
then things work as expected. i had to add an index function to actually have something display on screen (obviously) but i received no errors.
However, I do indeed only want to extend the controller in my EX_Expenses class (or MY_Controller as you've shown) but when I set things up as you have shown which is essentially identical to what i've pasted into my original post, i get that 'class not found' error i've noted above. I did change my original code to leave off the closing php tags but that has no effect on the error.
As far as I can tell, everything is setup as it should be:
-changed $config['subclass_prefix'] in the application/config/config.php file to be my custom prefix 'EX_'
-put 'EX_Expenses.php' into application/libraries/ with code as shown above (essentially identical to what you've shown)
-referenced it appropriately in application/controllers/test.php
I'm fine with using the 'require_once' solution but i sure would like to know why the solution without the include doesn't work when I seem to be following the requirements for extending the core controller this way.