cbc/symfony2-bootstrap 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cbc/symfony2-bootstrap

Composer 安装命令:

composer require cbc/symfony2-bootstrap

包简介

Integrates Bootstrap 3.1 with Symfony 2.4

README 文档

README

BootstrapBundle looks to integrate Bootstrap 3 with a Symfony2 v2.4 project. The base implementation hooks into the twig system, overridding the form templates and base html container to use base Bootstrap 3 styles. The Bundle also includes jQuery 1.10.* from a CDN with a local fallback.

Installation

Add the project to your composer file.

composer.json
{
	"require": {
		"cbc/symfony2-bootstrap": "1.1.*"
	}
}

Add the Bootstrap bundle to AppKernal and include the template.

/app/AppKernel.php
new CBC\Bundle\BootstrapBundle\BootstrapBundle()
/app/Resources/views/base.html.twig
{% extends 'BootstrapBundle::base.html.twig' %}

Defined Blocks

{% block meta %}
Contains base html tags.
{% block stylesheets %}
Contains base styles for Bootstrap bundle. Implement {{ parent() }} when overriding.
{% block title %}
Contains the page meta title.
{% block nav %}
Optional block before the content, outside of the container, but inside the wrap.
{% block body %}
Wrapper for the container.
{% block header %}
Adds a header before the content area.
{% block content %}
Base content area inside the container.
{% block footer %}
Optional block after the content, outside the container and wrap.
{% block javascripts %}
Contains base javascript for Bootstrap bundle. Implement {{ parent() }} when overridding.

统计信息

  • 总下载量: 224
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固