toa/twitter-bootstrap-bundle
Composer 安装命令:
composer require toa/twitter-bootstrap-bundle
包简介
Basic integration of Twitter Bootstrap into Symfony2
关键字:
README 文档
README
This Bundle is not maintained anymore. Use PUGXGeneratorBundle f. e.
This Bundle serves basic integration of Twitter Bootstrap(v2.2.0) into Symfony Standard Edition.
It includes a CRUD-generator based on SensioGeneratorBundle.
Installation
Add toa/twitter-bootstrap-bundle to composer.json.
{
"require": {
// ...
"toa/twitter-bootstrap-bundle": "dev-master",
// ...
}
}
Register this bundle in the app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Toa\Bundle\TwitterBootstrapBundle\ToaTwitterBootstrapBundle(),
// ...
);
}
Usage
CRUD generation
The CRUD-generator in ToaTwitterBootstrapBundle is based on SensioGeneratorBundle.
Instead of php ./app/console doctrine:generate:crud
you can use php ./app/console toa:generate:twitter-bootstrap-crud
with the same options and arguments.
Template overriding
Default CRUD-templates reside in Resources/skeleton/crud that can be overridden in /app/Resources/ToaTwitterBootstrapBundle/skeleton/crud.
The base-templates of SensioGeneratorBundle can be overridden in the same way.
Example #1:
All generated views extend from ToaTwitterBootstrapBundle::layout.html.twig that can be overridden in /app/Resources/ToaTwitterBootstrapBundle/skeleton/crud/views/others/extends.twig.twig.
Example #2:
All generated views use the content block that can be overridden in /app/Resources/ToaTwitterBootstrapBundle/skeleton/crud/views/others/block.twig.twig.
统计信息
- 总下载量: 1.38k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 9
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 2
其他信息
- 授权协议: MIT
- 更新时间: 2012-05-15