bbit / bootstrap-bundle
symfony BBITBootstrapBundle
dev-master
2014-03-30 10:44 UTC
Requires
- php: >=5.3.2
- symfony/framework-bundle: ~2.3
This package is not auto-updated.
Last update: 2024-09-14 14:50:28 UTC
README
将包含 jQuery、Bootstrap 和 font-awsome。
步骤 1: 使用 composer 下载 BBITBootstrapBundle
在 composer.json 中添加 BBITBootstrapBundle
{ "require": { "bbit/bootstrap-bundle": "dev-master", } }
现在运行以下命令让 composer 下载捆绑包
$ php composer.phar update bbit/bootstrap-bundle
Composer 将捆绑包安装到项目的 vendor/BBIT
目录。
步骤 2: 启用捆绑包
在内核中启用捆绑包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new BBIT\BootstrapBundle\BBITBootstrapBundle(), ); }
在 TWIG 模板中的使用
{{ insertBootstrap() }}