Welcome Guest, Not a member yet? Register   Sign In
Core classes in libraries/helpers
#1

[eluser]ixxalnxxi[/eluser]
Is it possible to use core classes inside of libraries and helpers? If so, how would I go about doing that.
#2

[eluser]thinkigniter[/eluser]
Maybe this will help clear things up?

In your helper or library...
Code:
$CI =& get_instance();

$CI->load->helper('url');
$CI->load->library('session');
$CI->config->item('base_url');
etc. etc.

read this for a more info

Hope this helps
#3

[eluser]ixxalnxxi[/eluser]
That was exactly it, thanks.




Theme © iAndrew 2016 - Forum software by © MyBB