Available constants

From Site Foundry

Jump to: navigation, search

These are defined constants created by the Site Foundry core, mainly from the configuration file. Please note that anything added to the configuration file will be automatically added to this list, and then available to use.

Configuration constants:

FS_WWW and FS_URI

These are effectively the same thing, FS_WWW is the value set in the configuration file, FS_URI will include any sub site data in the URI.

FS_PATH

The main path on the server to where the root of the install exists.

ENCODE_CHARSET

Set this to be the character encoding for the whole site. By default this is UTF-8.

USER_TIMEOUT

Use this value to set a time to log out any users of the application after a period of inactivity.

SITE_NAME

This is the main title of the application - and appears at the top of the management section of the application.

SITE_TITLE

This value will appear at the top of each page.

SITE_KEYWORDS

The sites keywords for the head tag.

SITE_DESCRIPTION

Description meta tag content.

SITE_EMAIL

A main user defined email address for site administration.

ADMIN_COLOUR1 & ADMIN_COLOUR2

Good for using in any of your additional CSS methods in back-end classes to maintain formatting.

BROWSER_TYPE, BROWSER_VERSION & BROWSER_OS

Set by the clients browser.

SF_PAGES

The page part of the currently requested URI.

SF_WILDCARDS

The any additional sections of the URI that are to be treated as wildcards.

PAGE_TITLE

The title of the currently requested page.

Personal tools