Welcome Guest, Not a member yet? Register   Sign In
Config vars in helpers

How can I access variables defined in my config.php file from a helper?


[quote author="Murodese" date="1226704821"]http://ellislab.com/codeigniter/user-guide/libraries/config.html[/quote]

Sorry, I meant helpers. I had libraries on my mind...lol. Since helpers aren't classes, is this even possible?

$CI =& get_instance();

No idea if it works in helpers, I would have to assume so.

e; yes, it does.

Theme © iAndrew 2016 - Forum software by © MyBB