Commit 2c6d388f by Qiang Xue

doc fix. [skip ci]

parent 99362c89
...@@ -53,6 +53,7 @@ api/ ...@@ -53,6 +53,7 @@ api/
models/ models/
User.php User.php
Post.php Post.php
Module.php
v2/ v2/
controllers/ controllers/
UserController.php UserController.php
...@@ -60,6 +61,7 @@ api/ ...@@ -60,6 +61,7 @@ api/
models/ models/
User.php User.php
Post.php Post.php
Module.php
``` ```
Your application configuration would look like: Your application configuration would look like:
...@@ -68,14 +70,10 @@ Your application configuration would look like: ...@@ -68,14 +70,10 @@ Your application configuration would look like:
return [ return [
'modules' => [ 'modules' => [
'v1' => [ 'v1' => [
'basePath' => '@app/modules/v1',
'class' => 'app\modules\v1\Module', 'class' => 'app\modules\v1\Module',
'controllerNamespace' => 'app\modules\v1\controllers',
], ],
'v2' => [ 'v2' => [
'basePath' => '@app/modules/v2',
'class' => 'app\modules\v2\Module', 'class' => 'app\modules\v2\Module',
'controllerNamespace' => 'app\modules\v2\controllers',
], ],
], ],
'components' => [ 'components' => [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment