1. 依赖包管理
在 Composer 添加一下依赖包:
{
"require": {
"braincrafted/bootstrap-bundle": "~2.0",
"knplabs/knp-paginator-bundle": "2.4.0"
}
}
2. 依赖包配置
<?php
// app/AppKernel.php
new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle(),
# app/config/bundles/bootstrap.yaml
braincrafted_bootstrap:
less_filter: none
# app/config/config.yaml
imports:
- { resource: bundles/bootstrap.yml }