futuretek/yii2-language
最新稳定版本:2.0.0
Composer 安装命令:
composer require futuretek/yii2-language
包简介
Yii2 language support
关键字:
README 文档
README
Usage
Data
Database will be populated via migration automatically.
Model
Use model futuretek\language\models\Language wherever you want
Language selector
Language selector can be used in any view. Language will be automatically switched in Yii application and saved into cookie.
There are two selectors available:
LanguageSelector::dropDown()- display drop-down with all enabled languagesLanguageSelector::flagList()- display list of all enabled language flags
Administration
Extension add very simple language list page with activate/deactivate option.
To include the page into your controller you have to add it to actions() method.
class LanguageController extends Controller
{
public function actions()
{
return [
'index' => 'futuretek\language\IndexAction',
];
}
}
Development
Assets are managed by Compass
- While developing run
compass watchin extension root directory - To compile assets for final distribution run
compass compile -e production --forcein extension root directory
统计信息
- 总下载量: 10.59k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2017-09-15