Welcome Guest, Not a member yet? Register   Sign In
CI2 - Model class - isset() fails
#4

[eluser]Pascal Kriete[/eluser]
I left that out on purpose :red: .

Wouldn't code like this just result in a loading call anyways? If db isn't set - load it? Then why have the if there at all, CI won't load anything twice.

I guess the problem I have with it is that the whole reason I made the change is so that CI's libraries and models wouldn't show up on the model class. With this change it feels a little like I could just assign a reference to the model in __get so it doesn't have to look it up in subsequent calls.

Convince me! :cheese:


Messages In This Thread
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 07:18 AM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 07:39 AM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 08:00 AM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 09:20 AM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 10:32 AM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 01:31 PM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 02:22 PM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 03:48 PM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 04:45 PM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 05:24 PM
CI2 - Model class - isset() fails - by El Forum - 11-12-2010, 05:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB