Table of Contents
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.
The following table lists new Marmot names for old MUPHPENV constants.
Table 4.1. Aliases
| mu_env_get(...) | Old constant | Example |
|---|---|---|
| 'web_host_url' | MU_WEB_HOST | https://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 |