Welcome Guest, Not a member yet? Register   Sign In
CI 2 - Third-Party folder
#1

[eluser]PoetaWD[/eluser]
Hello All,

I am just starting a new project and decided to use CI2.

There are a lot of changes that I am already familiar with.

The only thing (yet) that I cant figure out is the THIRD_PARTY folder indide the application directory.

How can I load a third-party library that is inside that folder ? Lets say, TCPDF library ?

Thanks
#2

[eluser]PoetaWD[/eluser]
Just found it thanks to PHIL STURGEON (http://philsturgeon.co.uk/news/category/codeigniter/10)

IT IS AWESOME what they did with this...


Quote:Application "Packages"

An application package allows for the easy distribution of complete sets of resources in a single directory, complete with its own libraries, models, helpers, config, and language files. It is recommended that these packages be placed in the application/third_party folder. Below is a sample map of an package directory

This is from CI2 user guide, under Loader Library
#3

[eluser]bonatoc[/eluser]
@Poetawd

Did you manage to make TCPDF work from inside a controller with this method ?




Theme © iAndrew 2016 - Forum software by © MyBB