Welcome Guest, Not a member yet? Register   Sign In
Help on adding the Imagine Library in Codeignighter
#4

(01-27-2015, 04:36 AM)sv3tli0 Wrote: An advice ..
Make a Model Imagine and there init the library and make methods for the thing which you will need with just passing 1-2 variables.
Don't use this directly at Controller.

An one note - when you move to CI3 it has an option to use composer and with composer you wont need this solution as it has autoloader.

As you can see the controller is for testing purposes. But in reality you can use the library anywhere you want. I was just showing how you implement the library in CI since I couldn't find any info on implementing the library. As always is up to the developer on how to use the information.

As far as composer, I am not really sure it would help since all it does is or what I think it does is download the files of a specific library to your application from there is up to you on how to apply it on your own application. But if it will go right up ahead and do the work for me then I can't wait for CI 3 to become stable to give it a try.
Reply


Messages In This Thread
RE: Help on adding the Imagine Library in Codeignighter - by d1a8lo24 - 01-27-2015, 02:52 PM



Theme © iAndrew 2016 - Forum software by © MyBB