Welcome Guest, Not a member yet? Register   Sign In
$this->load->model not working
#1

[eluser]Unknown[/eluser]
Hey everyone! I have a real problem
I am trying to load my model... $this->load->model('login'). The file is located in the models/ folder and it is called login.php (and the name of the class is login). However, it terminates my script
(An echo before the line is displayed, but an echo after the line is not)
Help me!
#2

[eluser]Stefan Hueg[/eluser]
Welcome aboard,
make sure your Model has the following scheme:

Code:
class Login extends CI_Model {

}

-Filename in lowercase (login.php)
-Capitalize the first letter of your classname
-extend CI_Model

#3

[eluser]Aken[/eluser]
Make sure error reporting is turned on, also. Sounds like you're receiving a fatal error but it's not being displayed.




Theme © iAndrew 2016 - Forum software by © MyBB