Welcome Guest, Not a member yet? Register   Sign In
Problems referencing a model instance with $this
#11

[eluser]bulmer[/eluser]
My problem was that I stuffed up something in the Core code (I know, I shouldn't have been there...).Probably when I was trying to get Code Assist working for CI in my Eclipse IDE.It was fixed by just replacing the Core system files.
The only advice I can give would be to double-check anything to do with your database Connection details in config and make sure you either Autoload it or Load it properly before you try to use it.Cheers.
#12

[eluser]patates.sogan[/eluser]
Hi,
bulmer thanks for your reply. I see your problem is different than mine. I figured out that using magic functions __get and __set for properties was the cause of my problem. When using those functions "$this->db" is referred as a property and raises error.
I simply removed those magic functions and everything's fine now.
Regards.




Theme © iAndrew 2016 - Forum software by © MyBB