This is the Twitter Bootstrap RTL (Right to Left) extension for Yii 2. It create an AssetBundle for Rtl bootstrap., (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist salatnik/yii2-bootstrap-rtl
or add, (*4)
"salatnik/yii2-bootstrap-rtl": "*"
to the require section of your composer.json
file., (*5)
For using this asset bundle you need just add this line 'salatnik\bootstrap\BootstrapRtlAsset'
in $depends
of AppAsset
or any asset bundels you work that., (*6)
Example:, (*7)
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',
];
}