Here is an example.
class My_Loader extends CI_Loader {
parent::__construct();
include(APPPATH.'config/jscss.php');
}
what is the 'APPPATH' above?
php file to /application/config/ folder.
EXT: The PHP file extension FCPATH: Path to the front controller (this file) (root of CI) SELF: The name of THIS file (index.php) BASEPATH: Path to the system folder APPPATH: The path to the "application" folder.
If you would like to share a common CodeIgniter installation to manage several different applications simply put all of the directories located inside your application directory into their own sub-directory. Each of your applications will need its own index. php file which calls the desired application. The index.
APPPATH is your application folder
Copy jscss.php
file to /application/config/
folder.
/application
- /config
- jscss.php
- /controllers
- /cache
- /core
- etc..
/system
index.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With