初始提交
This commit is contained in:
22
config/config.php
Normal file
22
config/config.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
//默认控制器和操作名
|
||||
'defaultController' => 'test\controller\Index',
|
||||
'defaultAction' => 'index',
|
||||
|
||||
//根命名空间
|
||||
'namespace' => [
|
||||
'app' => APP_PATH.DIRECTORY_SEPARATOR.'app',
|
||||
'fastphp' => APP_PATH.DIRECTORY_SEPARATOR.'fastphp',
|
||||
],
|
||||
|
||||
// 数据库连接
|
||||
'db' => [
|
||||
'host' => '127.0.0.1',
|
||||
'port' => 3306,
|
||||
'dbname' => 'test',
|
||||
'username' => 'root',
|
||||
'password' => '123456789'
|
||||
],
|
||||
];
|
||||
Reference in New Issue
Block a user