CI can't find my method and I don't know why... |
Hi all, I have a project in Ci and I can't get it to recognize my check2() for some reason. CI keeps throwing Fatal error: Call to undefined method CI_Loader::check2()
controller (Login.php) PHP Code: class Login extends CI_Controller { Model (verifylogin_model.php) PHP Code: <?php Any feedback is welcome
$this->load->model() calls don't return the models that you're requesting.
http://www.codeigniter.com/userguide3/li...der::model
Because this is not how you use models.
Method "model" of CI_Loader returns an instance of it self(CI_Loader), not an instance of the model. The model is instantiated in the controller property with the same name as the model, or in coder words: $this->Nameofmodel_model Please read: http://www.codeigniter.com/user_guide/ge...ng-a-model
Website: http://tomaz.lovrec.eu
GitHub: https://github.com/slax0rr Twitter: https://twitter.com/slax0rr |
Welcome Guest, Not a member yet? Register Sign In |