初始提交

This commit is contained in:
wanyongkang
2020-10-03 17:23:32 +08:00
commit a331e3f1d5
11 changed files with 676 additions and 0 deletions

22
config/config.php Normal file
View 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'
],
];