Marmot Manual

Chapter 4. Environmental Constants

Table of Contents

Conversion from old MUPHPENV constants
Using Marmot constants

The environment uses many defined constants internally. For encapsulation, portability and better code maintenance purposes, it is important to hide some of these constants provided by the environment. The mu_env_get() function serves this purpose. Rather than accessing those values directly, the Application Developers should access those constants with mu_env_get().

Many of these constants are either web paths or filesystem paths. These constants do not end in slashes so they can easily be assembled.

Conversion from old MUPHPENV constants

The following table lists new Marmot names for old MUPHPENV constants.

Table 4.1. Aliases

mu_env_get(...)Old constantExample
'web_host_url'MU_WEB_HOSThttps://webdev.admin.muohio.edu
'webpath_webapp_dir'MU_WEB_APP_DIR/phpdev
'fspath_webapp_dir'MU_FS_APP_DIR/usr/local/www/share/htdocs/phpdev
'webpath_appsupport_dir'MU_WEB_STATIC_DIR/static/application_support
'fspath_appsupport_dir'MU_FS_STATIC_DIR/usr/local/www/share/htdocs/static/application_support
'version' 1.0.1
'stage_name' DEV
'stage_message' This is a development stage.
'stage_type' developer
'default_theme' miami_01