Because of my previous issue trying to load classes within a controller I started to use models in my code.
One thing I am puzzled with how can I share my toolkit. Now I have everything inherited from the top class which is a child of CI_controller.
When I start inheriting form CI_model I must duplicate my general purpose code.
The main issue is this:
Fatal error: Class 'CI_Model' not found in /Applications/MAMP/htdocs/b4y_v20ez/application/models/Ezbuild_main_model.php on line 10
The code is like this:
PHP Code:
[color=#000000][size=medium][font=Times]class Ezbuild_main_model extends CI_Model {
function __construct() {
parent::__construct();
}[/font][/size][/color]
I checked the file and classname.
I hope for some help.
John