CodeClerks

CodeIgniter: Use a Library in view



Write the reason you're deleting this FAQ

CodeIgniter: Use a Library in view

I've loaded a library in my controller in the constructor but I'd like to use it in my view. It is just a simple text parsing library and I can see it in the controller when I do a print_r() of the object. However, it fails in the view.

I realize I shouldn't use this in the view, but I need to anyway so don't hassle me about it. CodeIgniter: Use a Library in view

Does anyone know how I can use a library loaded in the controller in a view with CodeIgniter?

Comments

Please login or sign up to leave a comment

Join