shish il y a 6 ans
Parent
commit
b002bb4f40
1 fichiers modifiés avec 20 ajouts et 0 suppressions
  1. 20 0
      common/config/main-local.php

+ 20 - 0
common/config/main-local.php

@@ -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;