Config vars in helpers |
[eluser]Iverson[/eluser]
How can I access variables defined in my config.php file from a helper?
[eluser]Murodese[/eluser]
http://ellislab.com/codeigniter/user-gui...onfig.html
[eluser]Iverson[/eluser]
[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?
[eluser]Murodese[/eluser]
Code: $CI =& get_instance(); No idea if it works in helpers, I would have to assume so. e; yes, it does. |
Welcome Guest, Not a member yet? Register Sign In |