valearkot/yii2-module
Composer 安装命令:
composer require valearkot/yii2-module
包简介
Test module
关键字:
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist valearkot/yii2-module "*"
or add
"valearkot/yii2-module": "*"
to the require section of your composer.json file.
- Migrate to create the desired table in the database (console):
yii migrate --migrationPath=@valearkot/yii2module/migrations --interactive=0
- Migrate i18n datebase:
./yii migrate --migrationPath='@yii/i18n/migrations'
- In config.php :
<?php
$config = [
'id' => 'basic',
'language' => 'en',
'sourceLanguage' => 'en',
And then add this to your application configuration:
<?php return [ // ... 'components' => [ // ... // Override the urlManager component 'urlManager' => [ 'class' => 'codemix\localeurls\UrlManager', // List all supported languages here // Make sure, you include your app's default language. 'languages' => $params['language'], ] // ... ] ];
Add in params.php:
<?php return [ 'language' => [ 'ru', 'de', 'en' //For example ], ];
统计信息
- 总下载量: 51
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-29