Constants
Fuel has four constants in the global namespace to direct you to important directories. Fuel uses them internally to locate classes and other files. These constants are set in public/index.php.
Note: When you move any of fuel's prime folders (app, core, public, packages) be sure to update you index.php to direct fuel to the right paths.
Key | Description |
---|---|
APPPATH | Path to the application directory (/path/to/fuel/app). This is where you application directories and code reside. |
COREPATH | Path to the core directory (/path/to/fuel/core). This is where all the Fuel classes live. |
DOCROOT | Path to the public directory (/path/to/public). This is where index.php resides. Everything accessible to user lives and is accessible via the browser). |
PKGPATH | Path to the packages directory (/path/to/fuel/packages). This is where your packages are installed (when installed through oil). |