|
|
@@ -1,4 +1,24 @@
|
|
|
<?php
|
|
|
$config = [
|
|
|
+ 'bootstrap' => ['debug', 'gii'],
|
|
|
+ 'modules' => [
|
|
|
+ 'debug' => [
|
|
|
+ 'class' => 'yii\debug\Module',
|
|
|
+ 'allowedIPs' => ['*'],
|
|
|
+ ],
|
|
|
+ 'gii' => [
|
|
|
+ 'class' => 'yii\gii\Module',
|
|
|
+ 'allowedIPs' => ['127.0.0.1', '::1'],
|
|
|
+ ],
|
|
|
+ ],
|
|
|
+ 'components' => [
|
|
|
+ 'db' => [
|
|
|
+ 'class' => 'yii\db\Connection',
|
|
|
+ 'dsn' => 'mysql:host=192.168.204.128;dbname=huahuibao',
|
|
|
+ 'username' => 'root',
|
|
|
+ 'password' => 'zt20152008',
|
|
|
+ 'charset' => 'utf8',
|
|
|
+ ],
|
|
|
+ ],
|
|
|
];
|
|
|
return $config;
|