Welcome Guest, Not a member yet? Register   Sign In
$this->load->vars()
#6

[eluser]mihailt[/eluser]
[quote author="xwero" date="1227205020"]I think a class variable is a bad idea because then it's a part of the super object. Because you don't know how all the classes are named that can be added to the super object it's possible you get same name errors.
[/quote]

not sure that i got you right , but i think it's not the issue, since static variable is a class variable not object variable and object instance doesn't have acces to it.

Anyway, setting the implementation aside, what needs to be done can be achived by following registry pattern.


Messages In This Thread
$this->load->vars() - by El Forum - 11-19-2008, 12:44 PM
$this->load->vars() - by El Forum - 11-19-2008, 01:10 PM
$this->load->vars() - by El Forum - 11-19-2008, 02:38 PM
$this->load->vars() - by El Forum - 11-20-2008, 06:01 AM
$this->load->vars() - by El Forum - 11-20-2008, 06:17 AM
$this->load->vars() - by El Forum - 11-20-2008, 06:27 AM
$this->load->vars() - by El Forum - 11-20-2008, 07:03 AM
$this->load->vars() - by El Forum - 11-20-2008, 07:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB