本文整理汇总了PHP中Configure::readConfig方法的典型用法代码示例。如果您正苦于以下问题:PHP Configure::readConfig方法的具体用法?PHP Configure::readConfig怎么用?PHP Configure::readConfig使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Configure
的用法示例。
在下文中一共展示了Configure::readConfig方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: delete
public static function delete($key)
{
Configure::readConfig();
unset(self::$_config[$key]);
Configure::writeConfig();
}
示例2: define
* @copyright Copyright (C) 2009 NGCoders. All rights reserved.
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/
/* Various Defines */
// Defines for random number and crypto. Change them in final application.
define('SALT', 'dfokgj5409jglkdfj0m9c5;');
// Cipher SALT can be numeric only
define('CIPHER_SALT', '456456356567567');
// Default Controller when root path is accessed
define('DEFAULT_CONTROLLER', 'default');
// Default action when root path is accessed
define('DEFAULT_ACTION', 'index');
// Admin path define {site}/admin/ will get into admin panel
define('BASEAPP_ADMIN', 'admin');
// Reads config array from data/config.php , this file is user editable
$config = Configure::readConfig();
// Overridable defines
define('SITE_URL', "http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . '/');
// Session handler if you want database based sessions
// define('SESSION_HELPER','session_helper.php');
// Cache helper allowing action level cache
// define('CACHE_HELPER','cache_helper.php');
// Debuggin setup , with allowance for firebug debugging.
define('DEBUG', isset($config['debug']) ? $config['debug'] : 1);
// Comment out if firebug debugging not required
// if (DEBUG < 3) define('FIREBUG',true);
// The base url used when creating relative urls
define('BASE_URL', SITE_URL . (Configure::read('url_sef') ? '' : '?/'));
// The path to various media
define('WEBROOT_URL', SITE_URL . 'app/webroot/');
// Custom routing as required by application