Adding Libraries Problem

Permalink
I'm wanting to use KoolPhpSuite controls for some custom pages I am going to create. From reading the documentation, the most appropriate place to put the code for the controls would be in the libraries (so that I don't require a copy for every single page I create, and I might also use them for some blocks). If the controls were in a folder local to the single page, I would include it as follows:

require "KoolControls/KoolAjax/koolajax.php";


How do I go about including the control when the KoolControls folder is in the libraries folder?

Should it be done like this:
require "../libraries/KoolControls/KoolAjax/koolajax.php";

 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
Loader::library('KoolControls/KoolAjax/koolajax');
adilger replied on at Permalink Reply
Thats what I needed to know. Thanks for the reply!