Reference constants

sabberworm edited this page Sep 5, 2011 · 3 revisions

Dirname Constants

These constants should be used with [[ResourceFinder]] instead of folder names to prevent misspellings.

  • DIRNAME_DATA
  • DIRNAME_CLASSES
  • DIRNAME_ADMIN
  • DIRNAME_VENDOR
  • DIRNAME_MODEL
  • DIRNAME_TEST
  • DIRNAME_LIB
  • DIRNAME_CONFIG
  • DIRNAME_PRELOAD
  • DIRNAME_IMAGES
  • DIRNAME_CACHES
  • DIRNAME_FULL_PAGE
  • DIRNAME_LANG
  • DIRNAME_WEB
  • DIRNAME_TEMPLATES
  • DIRNAME_NAVIGATION
  • DIRNAME_SITE
  • DIRNAME_BASE
  • DIRNAME_PLUGINS
  • DIRNAME_GENERATED

Full-Path constants

These constants contain the full absolute pathnames to directories inside the cms

  • MAIN_DIR (Rapila’s install location)
  • SITE_DIR (The site folder)
  • BASE_DIR (The folder which contains the currently active version of cms-base)
  • PLUGINS_DIR (The plugins folder, may not exists if no plugins are used)
  • [[CONTEXT_DIR]]

Frontend-Constants

  • MAIN_DIR_FE (The location the site can be reached, relative to the server root. E.g.: For normal installations where rapila sits at the root of a domain, this constant equals '/'; if the cms is reachable using cms.example.com/rapila, this constant is '/rapila/'.)

Deprecated

These constants should not be used unless you’re sure you want to deny yourself the override-capabilities that [[ResourceFinder]] provides.

  • BASE_DIR_FE
  • SITE_DIR_FE
  • INT_WEB_DIR_FE
  • EXT_WEB_DIR_FE
  • INT_CSS_DIR_FE
  • EXT_CSS_DIR_FE
  • INT_JS_DIR_FE
  • EXT_JS_DIR_FE
  • INT_MEDIA_DIR_FE
  • EXT_MEDIA_DIR_FE
  • INT_IMAGES_DIR_FE
  • EXT_IMAGES_DIR_FE
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.