Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update constants.md with examples #915

Open
wants to merge 2 commits into
base: 7.dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions docs/development/constants.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,32 @@ The ExpressionEngine core defines a variety of constants to ensure consistency i

## Path Constants

- `SELF` - Name of the bootstrap file
- `FCPATH` - Path to the bootstrap file
- `SELF` - Name of the admin file
- Example: `admin.php`
- `FCPATH` - Path to the admin file
- Example: `/var/www/html/website.com/public/`
- `SYSDIR` - Name of the system directory
- Example: `system`
- `SYSPATH` - Path of the system directory
- Example: `/var/www/html/website.com/system/`
- `APPPATH` and `BASEPATH` - Path to the `system/ee/legacy` directory
- Example: `/var/www/html/website.com/system/ee/legacy/`
- `PATH_ADDONS` - Path to the first-party add-ons directory
- Example: `/var/www/html/website.com/system/ee/ExpressionEngine/Addons/`
- `PATH_THEMES` - Path to the themes directory
- `PATH_RTE` - Path to the first party RTE tools directory
- Example: `/var/www/html/website.com/public/themes/ee/`
- `PATH_MBR_THEMES` - Path to the member themes directory
- Example: `/var/www/html/website.com/public/themes/ee/member/`
- `PATH_CP_GBL_IMG` - Path to the global image directory
- Example: `https://website.com/themes/ee/asset/img/`
- `PATH_JAVASCRIPT` - Path to the javascript directory
- Example: `/var/www/html/website.com/public/themes/ee/asset/javascript/compressed/`
- `PATH_JQUERY` - Path to the jQuery directory
- Example: `/var/www/html/website.com/public/themes/ee/asset/javascript/compressed/jquery/`
- `PATH_THIRD` - Path to third-party add-ons directory
- Example: `/var/www/html/website.com/system/user/addons/`
- `PATH_THIRD_THEMES` - Path to the third-party themes directory
- Example: `/var/www/html/website.com/public/themes/user/`

## Version Constants

Expand Down