nozzha/yii2-bootstrap_rtl

这是一个为 bower-asset/bootstrap-rtl [morteza/bootstrap-rtl] 提供的 Yii 2 包装扩展

安装次数: 11

依赖者: 0

建议者: 0

安全性: 0

星标: 1

关注者: 2

分支: 1

开放问题: 0

类型:yii2-extension

1.0 2015-12-03 09:28 UTC

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',
        ...
    ];
}