Codeigniter Multi-level Inheritance Codeigniter Multi-level Inheritance codeigniter codeigniter

Codeigniter Multi-level Inheritance


I've not seen a multi-level constructor class set up before, but it should work.

Are you calling parent::__construct() in the constructor of each class?


//-Create MY_Controller.php on application/core/MY_Controller.php//contents of MY_Controller.phpclass Application extends CI_Controller{    function __construct(){      // Call the CI_Controller constructor      parent::__construct();            }}//that is all now you can inherit class (Application) anywhere in your project