[solved] mystical error - Class 'MY_Controller' not found |
[eluser]SPeed_FANat1c[/eluser]
Hi, I have an extended controller - MY_Controller.php Code: <?php And made a test.php controller: Code: <?php I go to address http://localhost/plotai5/test (the CI2 appilication is in folder plotai5) and get error Fatal error: Class 'MY_Controller' not found in E:\Program Files\xampp\htdocs\plotai5\application\controllers\welcome.php on line 4 Why it even looks at welcome.php if I want test.php?
[eluser]Phil Sturgeon[/eluser]
Firstly if the URI is not responding correctly change the uri_protocol, that fixes most issues. Secondly, if your MY_Controller cannot be found you are either not loading it properly (via an __autoload() or manually using include()) or it is in the wrong place. In CI 2.0 MY_Controller should be in application/core.
[eluser]SPeed_FANat1c[/eluser]
Thanks ![]() ![]() |
Welcome Guest, Not a member yet? Register Sign In |