I have the following code:
class MY_Controller extends CI_Controller {
function __construct() {
parent::__construct();
}
}
I need to build a class where I do the CI_Controller extension, so I do not have to "repeat" functions that are used throughout the system ... For example: I have a client model, and another employee, both use a function called getById (), I would like to not need to repeat the function and always leave them inside a main controller ... To get better organized.