Welcome Guest, Not a member yet? Register   Sign In
Fatal error: Call to a member function get() on a non-object in
#21

[eluser]InsiteFX[/eluser]
1) Did you start MySQL?
2) Did you setup your database access in application/config/database.php ?

The Error states that the dataabase is not loaded!

InsiteFX
#22

[eluser]toopay[/eluser]
Look at the previous post. His original issue is that the CI super object isn't available in his models file, so he can not access any database stuff in his models.
#23

[eluser]InsiteFX[/eluser]
You do not need the CI super object to access the database in a Model!

InsiteFX
#24

[eluser]toopay[/eluser]
I know that, but this is not my issue my friend. He can't load the database, $this on his models class, which actually should represent CI super object, fails (because something unlcear). Look at his previous post. Now after re-installing, everything is ok (he said).
#25

[eluser]InsiteFX[/eluser]
@toopay,

You know as well as I do that if your getting that error then either the datbase is not being loaded or the database setup is incorrect.

I am glad that he has got it fixed. I had a similar problem when I started with CI I had to download it 3 or 4 times before it would work correct.

By I did not think of that being the problem, because I have not seen it happen lately.

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB