nemesarial / fontawesome-bundle
Symfony2 的 FontAwesome 3.0 Bundle
dev-master
2013-06-12 10:37 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: >=2.1,<2.4
This package is not auto-updated.
Last update: 2024-09-28 14:22:38 UTC
README
当前版本
Font Awesome 3.1.1 - 由 Dave Gandy 创建与维护
安装
将包添加到你的 composer.json 文件中
// composer.json { "require": { // ... "nemesarial/fontawesome-bundle": "*" } }
将包添加到你的应用程序内核中
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Nemesarial\FontAwesomeBundle\QlFontAwesomeBundle(), // ... ); }
使用 Composer 下载包并安装资源
$ php composer.phar update nemesarial/fontawesome-bundle $ php app/console assets:install --symlink web
使用 --symlink
属性创建链接而不是资源的副本
使用方法
Easy Bootstrap + Font Awesome 集成
例如,在你的模板的 head
部分
<link rel="stylesheet" type="text/css" href="{{ asset('..Your/Bootstrap/css..') }}" /> <link rel="stylesheet" type="text/css" href="{{ asset('bundles/qlfontawesome/css/font-awesome.min.css') }}" />