Welcome Guest, Not a member yet? Register   Sign In
Store static variables?
#1

[eluser]industrial[/eluser]
Hi again!

In a performance perspective, what is the best way to statically store some configuration variables in CI?

Is the config class the right way to go? If so, by loading the config directly after
Code:
parent::Controller();
in each controller where it will be used? Like this:

Code:
function mycontroller() {
        parent::Controller();    
        $this->config->load('myfunkyconfig');
    }



Have a great weekend!


Messages In This Thread
Store static variables? - by El Forum - 10-23-2009, 10:01 AM
Store static variables? - by El Forum - 10-23-2009, 11:19 AM
Store static variables? - by El Forum - 10-23-2009, 11:19 AM
Store static variables? - by El Forum - 10-23-2009, 11:20 AM
Store static variables? - by El Forum - 10-23-2009, 11:21 AM
Store static variables? - by El Forum - 10-23-2009, 11:22 AM
Store static variables? - by El Forum - 10-23-2009, 11:23 AM
Store static variables? - by El Forum - 10-23-2009, 11:33 AM
Store static variables? - by El Forum - 10-23-2009, 11:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB