Welcome Guest, Not a member yet? Register   Sign In
Loading CI instance inside helper, causes problem in library?
#3

[eluser]InsiteFX[/eluser]
WRONG! This is how you do it in helpers.

Code:
if ( ! function_exists('your_name'))
{
    function your_name()
    {
        $CI =& get_instance();
    
        // code what you need.
        $CI->do_something();
    }
}

InsiteFX


Messages In This Thread
Loading CI instance inside helper, causes problem in library? - by El Forum - 04-06-2010, 11:51 AM



Theme © iAndrew 2016 - Forum software by © MyBB