nozzha / yii2-bootstrap_rtl
这是一个为 bower-asset/bootstrap-rtl [morteza/bootstrap-rtl] 提供的 Yii 2 包装扩展
1.0
2015-12-03 09:28 UTC
Requires
- bower-asset/bootstrap-rtl: *
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-09-18 17:48:54 UTC
README
这是一个 Yii2 的包装扩展,它提供了一个 Asset
类,以便轻松包含所需的文件
安装
安装此扩展的首选方式是通过 composer。
可以运行
php composer.phar require --prefer-dist nozzha/yii2-bootstrap_rtl
或者将其添加到 composer.json 文件的 require 部分
"nozzha/yii2-bootstrap_rtl": "~1.0"
中
使用方法
可以在视图中注册资产包
/* @var $this yii\web\View */ \nozzha\bootstrap_rtl\BootstrapRTLAsset::register($this);
或者将其添加到 AppAsset
资产包的 $depends
变量中
class AppAsset extends AssetBundle { ... public $depends = [ ... 'nozzha\bootstrap_rtl\BootstrapRTLAsset', ... ]; }