Clarification about MY_Controller and relative inheritances |
What is the exact error you get?
I see nothing wrong with your understanding of inheritance. I don't see anything wrong with your code either. I constructed a test case doing the same as you (as I understand it) the test works just fine. File: application/core/MY_Controller.php PHP Code: class MY_Controller extends CI_Controller The model is one I had handy that is known to work. File: application/controllers/Welcome.php PHP Code: class Welcome extends Backend The var_dump produces the expected output. |
Welcome Guest, Not a member yet? Register Sign In |