Welcome Guest, Not a member yet? Register   Sign In
how can i use data from custom config in custom helper file
#2

[eluser]gon[/eluser]
You must get a reference to the CI object.

Code:
function image($sImageName)
{
    $CI =& get_instance();
    return base_url() . $CI->config->item('images', 'design') . $sImageName;
}

the same thing occurs in libraries and models.

cheers.


Messages In This Thread
how can i use data from custom config in custom helper file - by El Forum - 04-11-2008, 06:57 AM



Theme © iAndrew 2016 - Forum software by © MyBB