HMVC |
[eluser][email protected][/eluser]
Hi I Have the following under which cause error when loading model eg $this->load->model('users/mdl_users'); please see function below Application -Modules -users -controllers -users.php -models -mdl_uers.php when i trying to load this model function public function password_check($password){ $username = $this->input->post('username', TRUE); $this->load->model('users/mdl_users'); $result = $this->mdl_users->password_check($username, $password); if ($result == FALSE) { $this->form_validation->set_message('password_check', 'You did not enter a correct and/or password'); return FALSE; } else { return TRUE; } } Then give me error says Fatal error: Class 'Mdl_users' not found in C:\xampp\htdocs\csir_pri_cms\application\third_party\MX\Loader.php on line 209
[eluser]InsiteFX[/eluser]
Setup Modules paths in ./application/config/config.php: Code: // Modules are in the ./application/modules directory If you have the path setup correct in your ./application/config/config.php file then you can just do: Code: $this->load->model('mdl_users');
[eluser]Tim Brownlaw[/eluser]
Well that makes 5 separate threads on the exact same issue now, in two separate sections on the forum. @princemasedi Please STOP Creating new threads all over the place and choose ONE and stick with it! |
Welcome Guest, Not a member yet? Register Sign In |