1 Star 1 Fork 0

user_117262 / yii2-starter-kit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
console.md 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Eugene Terentev 提交于 2015-08-07 12:26 . Update console.md

Console

AppController

php console/yii app/setup

ExtendedMessageController

This controller extends default MessageController to provide some useful actions:

  • Migrate messages between different message sources: php console/yii message/migrate @common/config/messages/php.php @common/config/messages/db.php

  • Replace source code language: php console/yii message/replace-source-language @common/config/messages/php.php ru-RU or any other locale

  • Remove Yii::t from source code at all php console/yii message/replace-source-language @common/config/messages/php.php

RbacMigrateController

Provides migrate functionality for RBAC.

php console/yii rbac-migrate/create init_roles

php console/yii rbac-migrate/up

php console/yii rbac-migrate/down all

Compress assets

You need to have yuicompressor and uglifyjs installed.

php console/yii asset/compress frontend/config/assets/compress.php frontend/config/assets/_bundles.php

then uncomment these lines in the frontend/config/web.php

// Compressed assets
//$config['components']['assetManager'] = [
//   'bundles' => require(__DIR__ . '/assets/_bundles.php')
//];
PHP
1
https://gitee.com/wugf/yii2-starter-kit.git
git@gitee.com:wugf/yii2-starter-kit.git
wugf
yii2-starter-kit
yii2-starter-kit
master

搜索帮助