Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what is APPPATH in codeigniter

Here is an example.

class My_Loader extends CI_Loader {
    parent::__construct();
    include(APPPATH.'config/jscss.php');
}

what is the 'APPPATH' above?

like image 648
nextdoordoc Avatar asked Jul 25 '13 06:07

nextdoordoc


People also ask

Where is Apppath defined in CodeIgniter?

php file to /application/config/ folder.

What is Fcpath in CodeIgniter?

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.

How to manage multiple applications in CodeIgniter?

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.


1 Answers

APPPATH is your application folder

Copy jscss.php file to /application/config/ folder.

/application
  - /config
     - jscss.php
  - /controllers
  - /cache
  - /core
  - etc..
/system
index.php
like image 113
Bora Avatar answered Nov 16 '22 05:11

Bora