Welcome Guest, Not a member yet? Register   Sign In
I can't use models without using get_instance() in every function
#4

[eluser]bjosborn[/eluser]
[quote author="CroNiX" date="1406257850"]Are you sure you load the model before using it? Post the controller where you are using the model.[/quote]

I wouldn't be able to call the method if the model weren't loaded - I removed the code for loading the model, and got:



A PHP Error was encountered

Severity: Notice

Message: Undefined property: Login::$login_model

Filename: controllers/login.php

Line Number: 44

Fatal error: Call to a member function verify() on a non-object in C:\xampp\htdocs\oktsoberfest\application\controllers\login.php on line 44


Messages In This Thread
I can't use models without using get_instance() in every function - by El Forum - 07-25-2014, 06:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB