Permalink
Browse files

add bootstrapBundle

  • Loading branch information...
1 parent e13cf46 commit a7d950e9d296db3714f4d404f16b65a08ce202e1 Florian Pondepeyre committed Mar 8, 2013
View
@@ -23,6 +23,9 @@ public function registerBundles()
new Gr\BackendBundle\GrBackendBundle(),
new Gr\ModelBundle\GrModelBundle(),
new FOS\UserBundle\FOSUserBundle(),
+ new Braincrafted\BootstrapBundle\BraincraftedBootstrapBundle(),
+ new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
+ new Knp\Bundle\MenuBundle\KnpMenuBundle(),
);
if (in_array($this->getEnvironment(), array('dev', 'test'))) {
@@ -1,13 +1,15 @@
<!DOCTYPE html>
<html>
- <head>
- <meta charset="UTF-8" />
- <title>{% block title %}Welcome!{% endblock %}</title>
- {% block stylesheets %}{% endblock %}
- <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
- </head>
- <body>
- {% block body %}{% endblock %}
- {% block javascripts %}{% endblock %}
- </body>
+<head>
+ <meta charset="UTF-8" />
+ <title>{% block title %}Welcome!{% endblock %}</title>
+ {% include 'BraincraftedBootstrapBundle::_stylesheets.html.twig' %}
+ {% block stylesheets %}{% endblock %}
+ <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
+</head>
+<body>
+{% block body %}{% endblock %}
+{% include 'BraincraftedBootstrapBundle::_javascripts.html.twig' %}
+{% block javascripts %}{% endblock %}
+</body>
</html>
View
@@ -24,6 +24,9 @@ framework:
twig:
debug: %kernel.debug%
strict_variables: %kernel.debug%
+ form:
+ resources:
+ - "BraincraftedBootstrapBundle:Form:form_div_layout.html.twig"
# Assetic Configuration
assetic:
@@ -77,3 +80,11 @@ fos_user:
db_driver: propel # other valid values are 'mongodb', 'couchdb' and 'propel'
firewall_name: main
user_class: FOS\UserBundle\Propel\User
+
+knp_menu:
+ twig:
+ template: "BraincraftedBootstrapBundle:Menu:menu.html.twig"
+
+knp_paginator:
+ template:
+ pagination: BraincraftedBootstrapBundle:Pagination:pagination.html.twig
View
@@ -20,7 +20,11 @@
"jms/di-extra-bundle": "1.3.*",
"propel/propel-bundle": "1.2.*@dev",
"friendsofsymfony/user-bundle": "*",
- "willdurand/propel-typehintable-behavior": "*"
+ "willdurand/propel-typehintable-behavior": "*",
+ "braincrafted/bootstrap-bundle": "dev-master",
+ "knplabs/knp-paginator-bundle": "dev-master",
+ "knplabs/knp-menu-bundle": "dev-master",
+ "knplabs/knp-menu-bundle": "*"
},
"scripts": {
"post-install-cmd": [
View
@@ -1,7 +1,61 @@
{
- "hash": "a7d6b4999313eaee04a920845da44406",
+ "hash": "e9839e57af9fe826146d9331cf45e31d",
"packages": [
{
+ "name": "braincrafted/bootstrap-bundle",
+ "version": "dev-master",
+ "target-dir": "Braincrafted/BootstrapBundle",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/braincrafted/bootstrap-bundle.git",
+ "reference": "v1.2.0"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/braincrafted/bootstrap-bundle/zipball/v1.2.0",
+ "reference": "v1.2.0",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.3",
+ "twig/extensions": "dev-master"
+ },
+ "require-dev": {
+ "knplabs/knp-markdown-bundle": "dev-master",
+ "knplabs/knp-menu": "dev-master",
+ "knplabs/knp-menu-bundle": "dev-master",
+ "knplabs/knp-paginator-bundle": "dev-master"
+ },
+ "suggest": {
+ "knplabs/knp-menu": "Required to use KnpMenuBundle.",
+ "knplabs/knp-menu-bundle": "BraincraftedBootstrapBundle styles the menus provided by KnpMenuBundle.",
+ "knplabs/knp-paginator-bundle": "BraincraftedBootstrapBundle styles the pagination provided by KnpPaginatorBundle."
+ },
+ "type": "symfony-bundle",
+ "autoload": {
+ "psr-0": {
+ "Braincrafted\\BootstrapBundle": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Florian Eckerstorfer",
+ "email": "florian@theroadtojoy.at",
+ "homepage": "http://florianeckerstorfer.com",
+ "role": "Developer"
+ }
+ ],
+ "description": "Twitter Bootstrap for Symfony2",
+ "keywords": [
+ "bootstrap"
+ ],
+ "time": "2013-02-24 18:14:21"
+ },
+ {
"name": "doctrine/annotations",
"version": "v1.0",
"source": {
@@ -1045,6 +1099,239 @@
"time": "2013-02-18 08:46:41"
},
{
+ "name": "knplabs/knp-components",
+ "version": "1.2.2",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/KnpLabs/knp-components.git",
+ "reference": "1.2.2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/KnpLabs/knp-components/zipball/1.2.2",
+ "reference": "1.2.2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.2"
+ },
+ "suggest": {
+ "doctrine/common": "to allow usage pagination with Doctrine ArrayCollection",
+ "doctrine/mongodb-odm": "to allow usage pagination with Doctrine ODM MongoDB",
+ "doctrine/orm": "to allow usage pagination with Doctrine ORM",
+ "propel/propel1": "to allow usage pagination with Propel ORM",
+ "ruflin/Elastica": "to allow usage pagination with ElasticSearch Client",
+ "solarium/solarium": "to allow usage pagination with Solarium Client"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.2.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Knp\\Component": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "KnpLabs Team",
+ "homepage": "http://knplabs.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "http://github.com/KnpLabs/knp-components/contributors"
+ }
+ ],
+ "description": "Knplabs component library",
+ "homepage": "http://github.com/KnpLabs/knp-components",
+ "keywords": [
+ "components",
+ "knp",
+ "knplabs",
+ "pager",
+ "paginator"
+ ],
+ "time": "2013-02-20 12:05:07"
+ },
+ {
+ "name": "knplabs/knp-menu",
+ "version": "v1.1.2",
+ "source": {
+ "type": "git",
+ "url": "http://github.com/KnpLabs/KnpMenu.git",
+ "reference": "v1.1.2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://github.com/KnpLabs/KnpMenu/zipball/v1.1.2",
+ "reference": "v1.1.2",
+ "shasum": ""
+ },
+ "require": {
+ "php": ">=5.3.0"
+ },
+ "require-dev": {
+ "pimple/pimple": "*",
+ "silex/silex": "1.0.*",
+ "twig/twig": ">=1.2,<2.0-dev"
+ },
+ "suggest": {
+ "pimple/pimple": "for the built-in implementations of the menu provider and renderer provider",
+ "silex/silex": "for the integration with your silex application",
+ "twig/twig": "for the TwigRenderer and the integration with your templates"
+ },
+ "type": "library",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.1.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Knp\\Menu\\": "src/"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christophe Coevoet",
+ "email": "stof@notk.org"
+ },
+ {
+ "name": "Knplabs",
+ "homepage": "http://knplabs.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://github.com/KnpLabs/KnpMenu/contributors"
+ }
+ ],
+ "description": "An object oriented menu library",
+ "homepage": "http://knplabs.com",
+ "keywords": [
+ "menu",
+ "tree"
+ ],
+ "time": "2012-06-10 09:20:40"
+ },
+ {
+ "name": "knplabs/knp-menu-bundle",
+ "version": "v1.1.1",
+ "target-dir": "Knp/Bundle/MenuBundle",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/KnpLabs/KnpMenuBundle.git",
+ "reference": "v1.1.1"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/KnpLabs/KnpMenuBundle/zipball/v1.1.1",
+ "reference": "v1.1.1",
+ "shasum": ""
+ },
+ "require": {
+ "knplabs/knp-menu": "1.1.*",
+ "symfony/framework-bundle": ">=2.0,<2.3-dev"
+ },
+ "type": "symfony-bundle",
+ "autoload": {
+ "psr-0": {
+ "Knp\\Bundle\\MenuBundle": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "Christophe Coevoet",
+ "email": "stof@notk.org"
+ },
+ {
+ "name": "Knplabs",
+ "homepage": "http://knplabs.com"
+ },
+ {
+ "name": "Symfony Community",
+ "homepage": "https://github.com/KnpLabs/KnpMenuBundle/contributors"
+ }
+ ],
+ "description": "This bundle provides an integration of the KnpMenu library",
+ "keywords": [
+ "menu"
+ ],
+ "time": "2012-11-28 20:05:09"
+ },
+ {
+ "name": "knplabs/knp-paginator-bundle",
+ "version": "dev-master",
+ "target-dir": "Knp/Bundle/PaginatorBundle",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/KnpLabs/KnpPaginatorBundle.git",
+ "reference": "v2.3.2"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/KnpLabs/KnpPaginatorBundle/zipball/v2.3.2",
+ "reference": "v2.3.2",
+ "shasum": ""
+ },
+ "require": {
+ "knplabs/knp-components": ">=1.1,<2.0",
+ "php": ">=5.3.3",
+ "symfony/framework-bundle": ">=2.0,<3.0",
+ "twig/twig": ">=1.5,<2.0"
+ },
+ "type": "symfony-bundle",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "2.3.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-0": {
+ "Knp\\Bundle\\PaginatorBundle": ""
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "MIT"
+ ],
+ "authors": [
+ {
+ "name": "KnpLabs Team",
+ "homepage": "http://knplabs.com"
+ },
+ {
+ "name": "Symfony2 Community",
+ "homepage": "http://github.com/KnpLabs/KnpPaginatorBundle/contributors"
+ }
+ ],
+ "description": "Paginator bundle for Symfony2 to automate pagination and simplify sorting and other features",
+ "homepage": "http://github.com/KnpLabs/KnpPaginatorBundle",
+ "keywords": [
+ "Symfony2",
+ "bundle",
+ "knp",
+ "knplabs",
+ "pager",
+ "pagination",
+ "paginator"
+ ],
+ "time": "2013-02-18 17:29:20"
+ },
+ {
"name": "kriswallsmith/assetic",
"version": "dev-master",
"source": {
@@ -2036,7 +2323,9 @@
],
"minimum-stability": "alpha",
"stability-flags": {
- "propel/propel-bundle": 20
+ "propel/propel-bundle": 20,
+ "braincrafted/bootstrap-bundle": 20,
+ "knplabs/knp-paginator-bundle": 20
},
"platform": {
"php": ">=5.3.3"
@@ -1 +1,5 @@
-Hello {{ name }}!
+{% extends '::base.html.twig' %}
+
+{% block body %}
+ Hello {{ name }}!
+{% endblock %}
@@ -1,3 +1 @@
-gr_model_homepage:
- pattern: /hello/{name}
- defaults: { _controller: GrModelBundle:Default:index }
+

0 comments on commit a7d950e

Please sign in to comment.