本文整理汇总了PHP中GlobalConfig::APP_ROOT方法的典型用法代码示例。如果您正苦于以下问题:PHP GlobalConfig::APP_ROOT方法的具体用法?PHP GlobalConfig::APP_ROOT怎么用?PHP GlobalConfig::APP_ROOT使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GlobalConfig
的用法示例。
在下文中一共展示了GlobalConfig::APP_ROOT方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: realpath
*
* This file contains application-wide configuration settings. The settings
* here will be the same regardless of the machine on which the app is running.
*
* This configuration should be added to version control.
*
* No settings should be added to this file that would need to be changed
* on a per-machine basic (ie local, staging or production). Any
* machine-specific settings should be added to _machine_config.php
*/
/**
* APPLICATION ROOT DIRECTORY
* If the application doesn't detect this correctly then it can be set explicitly
*/
if (!GlobalConfig::$APP_ROOT) {
GlobalConfig::$APP_ROOT = realpath("./");
}
/**
* INCLUDE PATH
* Adjust the include path as necessary so PHP can locate required libraries
*/
set_include_path(GlobalConfig::$APP_ROOT . '/libs/' . PATH_SEPARATOR . GlobalConfig::$APP_ROOT . '/../libs/' . PATH_SEPARATOR . get_include_path());
/**
* RENDER ENGINE
*/
require_once 'verysimple/Phreeze/SavantRenderEngine.php';
GlobalConfig::$TEMPLATE_ENGINE = 'SavantRenderEngine';
GlobalConfig::$TEMPLATE_PATH = GlobalConfig::$APP_ROOT . '/templates/';
GlobalConfig::$TEMPLATE_CACHE_PATH = '';
/**
* ROUTE MAP