salatnik/yii2-bootstrap-rtl

为 Yii 2.0 框架提供的 Twitter Bootstrap Rtl 扩展

dev-master 2015-08-20 10:04 UTC

This package is not auto-updated.

Last update: 2024-10-02 09:27:25 UTC


README

这是为 Yii 2.0 提供的 Twitter Bootstrap RTL (从右到左) 扩展。它为 RTL bootstrap 创建了一个 AssetBundle。

安装

安装此扩展的首选方式是通过 composer

运行以下命令

php composer.phar require --prefer-dist salatnik/yii2-bootstrap-rtl

或者在您的 composer.json 文件的 require 部分添加以下内容

"salatnik/yii2-bootstrap-rtl": "*"

为了使用此资产包,您只需要在 AppAsset 或您正在工作的任何资产包的 $depends 中添加这一行 'salatnik\bootstrap\BootstrapRtlAsset'

示例

namespace backend\assets;

use yii\web\AssetBundle;

class AppAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'css/site.css',
    ];
    public $depends = [
        'yii\web\YiiAsset',
        'yii\bootstrap\BootstrapAsset',
        'salatnik\bootstrap\BootstrapRtlAsset',
    ];
}