MY_Controller can't load model in HMVC |
[eluser]didit[/eluser]
hi all, i have a problem with MY_Contoller, why it can't load model ?? im using modular extention here is my codes : Code: class MY_Controller extends Controller { my controller Code: class Testing extends MY_Controller { my model Code: class Testing_Model extends Model { an error occurred when i run http://localhost:81/ci/index.php/testing/getAll here is the error : Quote:An Error Was Encountered plese help ! just FYI, everything works fine if i don't use MY_Controller sorry im not good enough in english ![]()
[eluser]Colin Williams[/eluser]
Your model should be "Test_model" and not "Test_Model" and the filename should be test_model.php CI is case sensitive
[eluser]didit[/eluser]
hi collin, I have change my model to Testing_model and filename to testing_model, but the same error still occured ! please advice, thanks
[eluser]flaky[/eluser]
From the wiki Quote:Use application/libraries/MX_Controller.php to contain Controller class extensions instead of using MY_Controller.
|
Welcome Guest, Not a member yet? Register Sign In |