tirrex / php-yii-ext-bootstrap4-glyphicons
如何使用Bootstrap 4与Glyphicons
dev-master
2023-08-21 12:57 UTC
Requires
- yiisoft/yii2: ~2.0.0
This package is not auto-updated.
Last update: 2024-10-01 16:37:41 UTC
README
如果您想在您的Yii2项目中使用Bootstrap 4的Glyphicons(https://github.com/yiisoft/yii2-bootstrap4)
安装
安装此扩展的首选方式是通过composer。
将仓库添加到您的composer.json文件中。
"repositories":[
...
{
"type": "git",
"url": "https://bitbucket.org/tirrex/php-yii-ext-bootstrap4-glyphicons.git"
}
...
]
运行以下命令之一:
php composer.phar require --prefer-dist tirrex/php-yii-ext-bootstrap4-glyphicons "*"
或者将以下内容添加到您的composer.json
文件的require部分:
"tirrex/php-yii-ext-bootstrap4-glyphicons": "*"
使用方法
扩展安装完成后,只需在Layout代码中简单使用即可
<?php
use tirrex\bootstrap4glyphicons\assets\GlyphiconAsset;
GlyphiconAsset::register($this);