Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Getting started: Constants

Marco Montalbano edited this page Jul 31, 2017 · 1 revision

Defaults

The following constants are defined by the Mako framework:

Name Description
MAKO_VERSION    Holds the Mako framework version.
MAKO_CHARSET Default charset used internally in the framework.
MAKO_APPLICATION_PATH  Defines the path to the app directory (without trailing slash).
MAKO_APPLICATION_PARENT_PATH Defines the path to the parent directory of the app directory (without trailing slash).
MAKO_START Starting point of the framework execution in ms.
MAKO_MAGIC_QUOTES Holds the return value of get_magic_quotes_gpc().
MAKO_IS_WINDOWS Is set to TRUE if Mako runs on a Windows system and FALSE if not.
MAKO_APPLICATION_ID MD5 hash of the application path.
MAKO_PACKAGES_PATH Path to the packages directory.

Modifiers

The following constants can modify the behavior of the framework if defined:

Name Description
MAKO_XHTML If this constant is defined then the HTML helper will return XHTML compatible tags.

Clone this wiki locally