当前位置: 首页>>代码示例>>PHP>>正文


PHP GlobalConfig::CONNECTION_SETTING方法代码示例

本文整理汇总了PHP中GlobalConfig::CONNECTION_SETTING方法的典型用法代码示例。如果您正苦于以下问题:PHP GlobalConfig::CONNECTION_SETTING方法的具体用法?PHP GlobalConfig::CONNECTION_SETTING怎么用?PHP GlobalConfig::CONNECTION_SETTING使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在GlobalConfig的用法示例。


在下文中一共展示了GlobalConfig::CONNECTION_SETTING方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: ConnectionSetting

/**
 * @package Pizzaria Meveana
 *
 * MACHINE-SPECIFIC CONFIGURATION SETTINGS
 *
 * The configuration settings in this file can be changed to suit the
 * machine on which the app is running (ex. local, staging or production).
 *
 * This file should not be added to version control, rather a template
 * file should be added instead and then copied for each install
 */
require_once 'verysimple/Phreeze/ConnectionSetting.php';
require_once "verysimple/HTTP/RequestUtil.php";
/** database connection settings */
GlobalConfig::$CONNECTION_SETTING = new ConnectionSetting();
GlobalConfig::$CONNECTION_SETTING->ConnectionString = ":3306";
GlobalConfig::$CONNECTION_SETTING->DBName = "test";
GlobalConfig::$CONNECTION_SETTING->Username = "root";
GlobalConfig::$CONNECTION_SETTING->Password = "";
GlobalConfig::$CONNECTION_SETTING->Type = "MySQL_PDO";
GlobalConfig::$CONNECTION_SETTING->Charset = "utf8";
GlobalConfig::$CONNECTION_SETTING->Multibyte = true;
// GlobalConfig::$CONNECTION_SETTING->BootstrapSQL = "SET SQL_BIG_SELECTS=1";
/** the root url of the application with trailing slash, for example http://localhost/pizzaria meveana/ */
GlobalConfig::$ROOT_URL = RequestUtil::GetServerRootUrl() . 'meveana/';
/** timezone */
// date_default_timezone_set("UTC");
/** functions for php 5.2 compatibility */
if (!function_exists('lcfirst')) {
    function lcfirst($string)
开发者ID:ronyelias,项目名称:pizzaria,代码行数:30,代码来源:_machine_config.php


注:本文中的GlobalConfig::CONNECTION_SETTING方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。