Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] "Non-object" fatal error when loading two models in a controller
#9

[eluser]adityamenon[/eluser]
Hi InsiteFX!

Thanks for the answer, I did what you had suggested, but no luck on both counts Sad

Even after changing $pag_config to $config, the view is not rendering fully, it's stopping at the place I wrote create_links(); and saying

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: CI_Loader::$pagination

Filename: views/find_partner.php

Line Number: 8

And even after changing the order of the $autoload['libraries'] like you had suggested (copy-pasted your code I swear), the model stops working if I don't write $this->load->database(); in the constructor. It says:

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Frontend_model::$db

Filename: models/frontend_model.php

Line Number: 28

I appreciate your time, everybody... please help me pass this storm Smile It's really annoying how a lot of work gets stopped with really small errors like this one!


Messages In This Thread
[SOLVED] "Non-object" fatal error when loading two models in a controller - by El Forum - 06-08-2011, 04:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB