Welcome Guest, Not a member yet? Register   Sign In
Collisions with library and variables?
#2

[eluser]Seppo[/eluser]
Quote:What if I load a library name category in a controler. This will be accessible with $this->category;
YEs

Quote:What if I have a class variable within that controller with the same name category, what would happen?
When you load the library, it will overwrite the variable value... probably not a good idea.
I've done it once with a model named address and another model named user with an address attribute...


Messages In This Thread
Collisions with library and variables? - by El Forum - 02-21-2008, 04:18 PM
Collisions with library and variables? - by El Forum - 02-21-2008, 04:28 PM
Collisions with library and variables? - by El Forum - 02-21-2008, 04:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB