| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <?php
- // uncomment the following to define a path alias
- // Yii::setPathOfAlias('local','path/to/local-folder');
- // This is the main Web application configuration. Any writable
- // CWebApplication properties can be configured here.
- return array(
- 'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
- 'name'=>'智铺子代理商管理系统',
- 'language'=>'zh_cn',
- 'timeZone'=>'Asia/Chongqing',
- // preloading 'log' component
- 'preload'=>array('log'),
- // autoloading model and component classes
- 'import'=>array(
- 'application.models.*',
- 'application.components.*',
- 'application.include.*',
- 'application.include.Lewaimai.*',
- 'application.lib.*',
- ),
- 'modules'=>array(
- // uncomment the following to enable the Gii tool
- 'gii'=>array(
- 'class'=>'system.gii.GiiModule',
- 'password'=>'hhyz122131',
- // If removed, Gii defaults to localhost only. Edit carefully to taste.
- 'ipFilters'=>array('127.0.0.1','::1'),
- ),
- ),
- // application components
- 'components'=>array(
- 'user'=>array(
- // enable cookie-based authentication
- 'allowAutoLogin'=>true,
- ),
-
- // uncomment the following to enable URLs in path-format
- // uncomment the following to enable URLs in path-format
- 'urlManager'=>array(
- 'urlFormat'=>'path',
- 'showScriptName' => false,
- 'urlSuffix' => '',
- 'rules'=>array(
- '<action:\w+>'=>array('site/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
- 'help/<action:\w+>'=>array('help/<action>', 'urlSuffix'=>'.html', 'caseSensitive'=>false),
- '<controller:\w+>/<id:\d+>'=>'<controller>/view',
- '<controller:\w+>/<action:\w+>/<id:\d+>'=>'<controller>/<action>',
- '<controller:\w+>/<action:\w+>'=>'<controller>/<action>'
- ),
- ),
- 'db'=>array(
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=agent',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'ag_',
- ),
- 'platformDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=platform',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'pf_',
- ),
- 'cyDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=weixin',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
- 'lsDb'=>array(
- 'class' => 'CDbConnection',
- 'connectionString' => 'mysql:host=rm-bp1ytv13wkx1c2h94.mysql.rds.aliyuncs.com;dbname=lssystem',
- 'emulatePrepare' => true,
- 'username' => 'zhipuzi',
- 'password' => 'Zhipuzitest00',
- 'charset' => 'utf8',
- 'tablePrefix' => 'wx_',
- ),
-
- 'errorHandler'=>array(
- // use 'site/error' action to display errors
- 'errorAction'=>'site/error',
- ),
- 'log'=>array(
- 'class'=>'CLogRouter',
- 'routes'=>array(
- array(
- 'class'=>'CFileLogRoute',
- 'levels'=>'info, error, warning',
- ),
- // uncomment the following to show log messages on web pages
- /*
- array(
- 'class'=>'CWebLogRoute',
- ),
- */
- ),
- ),
- ),
- // application-level parameters that can be accessed
- // using Yii::app()->params['paramName']
- 'params'=>array(
- // this is used in contact page
- 'adminEmail'=>'2106microtech@gmail.com',
- 'agnet_appid' => '84b19199fd221a78c491cd553cbb4ab7',
- 'agent_secret' => '#repast!@#AfAS#@!',
- 'sign_timeout' => 1800,
- ),
- );
|