Here is an example.
class My_Loader extends CI_Loader {
parent::__construct();
include(APPPATH.'config/jscss.php');
}
what is the 'APPPATH' above?
APPPATH is your application folder
Copy jscss.php
file to /application/config/
folder.
/application
- /config
- jscss.php
- /controllers
- /cache
- /core
- etc..
/system
index.php
path to your application folder.
Path upto your Application
folder
PAth on your Application->Your Project
APPPATH
is a codeigniter constant. It contains value of the full path to your application
folder.
/path/to/your/codeigniter/application/
Note: The value of the constant has a slash character /
at the end. This is crucial for concatenation purposes.