1. Home
  2. Docs
  3. PHP Style Guide
  4. Constants

Constants

Constants follow the same guidelines as do variables, except constants should always be fully uppercase. Always use CodeIgniter constants when appropriate, i.e. SLASH, LD, RD, PATH_CACHE, etc.

INCORRECT:

CORRECT:

Was this article helpful to you? Yes No

How can we help?