Welcome Guest, Not a member yet? Register   Sign In
Hook Libraries and get instance
#1

[eluser]ShoeLace1291[/eluser]
So, I am using hook classes to generate the global templates(header and footer) for my site. Does $CI =& get_instance() work in these classes? Every time I use $CI to load a library, etc, I always get this error

Quote:Call to a member function base_url() on a non-object




Theme © iAndrew 2016 - Forum software by © MyBB