I want to know how to call codeigniter functions in a helper is it possible?
Thank You
get_intance
) and you're good to go - Colin Brock 2012-04-05 03:39
Per the comments above, you would do the same thing with helpers as you would with libraries. That is, get the CodeIgniter super object via get_instance
:
function some_helper_function(){
$CI =& get_instance();
// Now you can access whatever CodeIgniter resource via $CI
}
get_instance
. I'd make an answer, but I'm too tired - Rocket Hazmat 2012-04-05 00:21