We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do config GII for create models?
The text was updated successfully, but these errors were encountered:
Modified your config.php and add gii to bootstrap and modules.
config.php
<?php return [ 'id' => 'micro-app', // the basePath of the application will be the `micro-app` directory 'basePath' => dirname(__DIR__), 'bootstrap' => ['gii'], 'modules' => [ 'v1' => [ 'class' => 'app\modules\v1\v1', ], 'gii' => [ 'class' => 'yii\gii\Module', ], ], // this is where the application will find all controllers 'controllerNamespace' => 'app\controllers', // set an alias to enable autoloading of classes from the 'micro' namespace 'aliases' => [ '@app' => __DIR__.'/../', ], 'components' => [ 'urlManager' => [ 'class' => 'yii\web\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ '<alias:\w+>' => 'site/<alias>', ], ], 'user' => [ 'identityClass' => 'app\models\UserIdentity', 'enableAutoLogin' => false, 'enableSession' => false, 'loginUrl' => null, ], 'request' => [ 'parsers' => [ 'application/json' => 'yii\web\JsonParser', ], 'enableCsrfCookie' => false, ], 'db' => $db, ], 'params' => $params, ];
I haven't try it, but it should work. And don't forget to include "yiisoft/yii2-gii" to your composer.json.
Sorry, something went wrong.
No branches or pull requests
How do config GII for create models?
The text was updated successfully, but these errors were encountered: