Welcome Guest, Not a member yet? Register   Sign In
CI and instantiating classes
#5

[eluser]Jow272[/eluser]
You're wright, it's a model of course.

I tried the Uppercase first style, but that didn't solve the problem, although I will keep that style as it is best practice.

But I suddenly thought I'd try to make the Address_model class clean, so I commented out the constructor and got the error out. By removing the comments signs one by one I found out that the problem lies with the
Code:
$this->load->database();
line! This is wierd, why should that not work? I used that in so many other (if not all of mine) model classes.

Damn; again one step further, but still useless. I of course need the database class in my model to be able to work with the database. Also a bit stupid I didn't think earlier about commenting out deeper.

When I leave the line out I (obviously) get errors concerning the $this->db lines.

Any thoughts?


Messages In This Thread
CI and instantiating classes - by El Forum - 11-21-2009, 08:31 AM
CI and instantiating classes - by El Forum - 11-21-2009, 10:17 AM
CI and instantiating classes - by El Forum - 11-21-2009, 11:10 AM
CI and instantiating classes - by El Forum - 11-21-2009, 11:58 AM
CI and instantiating classes - by El Forum - 11-21-2009, 12:21 PM
CI and instantiating classes - by El Forum - 11-21-2009, 12:43 PM
CI and instantiating classes - by El Forum - 11-22-2009, 03:54 AM
CI and instantiating classes - by El Forum - 11-22-2009, 06:28 AM
CI and instantiating classes - by El Forum - 11-22-2009, 06:50 AM
CI and instantiating classes - by El Forum - 11-22-2009, 09:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB