My component is using phpExcel library; I put it into /libraries/phpexcel/Classes
. This is an independent (and quite big) library, so I thought, that it would be wise to tell the admin where to put it before component installation. And in the install script of the component check the existence of the lib.
I import the library using this code:
jimport('libraries.phpexcel');
//Include PHPExcel classes
JLoader::import('phpexcel.Classes.PHPExcel');
JLoader::import('phpexcel.Classes.PHPExcel.IOFactory');
Is it the correct way to use an external library?