Welcome Guest, Not a member yet? Register   Sign In
Config items in Libraries
#2

[eluser]xwero[/eluser]
in a custom library you need to get the CI object which you can do using the get_instance function. You can put it in the constructor of the library or in the method.
Code:
$_ci =& get_instance();
$_ci->config->item('mailto');


Messages In This Thread
Config items in Libraries - by El Forum - 05-22-2008, 07:29 AM
Config items in Libraries - by El Forum - 05-22-2008, 07:33 AM
Config items in Libraries - by El Forum - 05-22-2008, 08:00 AM
Config items in Libraries - by El Forum - 05-22-2008, 08:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB