2017 © Pedro Peláez
 

symfony-bundle layout-bundle

Default layout for all sites

image

apnet/layout-bundle

Default layout for all sites

  • Friday, July 8, 2016
  • by covex-nn
  • Repository
  • 3 Watchers
  • 1 Stars
  • 775 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 10 Versions
  • 1 % Grown

The README.md

Apnet Layout Bundle

Travis-ci status SensioLabsInsight, (*1)

Base layout template bundled with Bootstrap, jQuery and html5shiv, (*2)

Installation

Add requirements to composer.json:, (*3)

``` json { "require" : { "apnet/layout-bundle" : "~3.1" } }, (*4)


Configurations -------------- Register `ApnetAsseticImporterBundle` and `ApnetLayoutBundle` bundles in the `AppKernel.php` file ``` php // ...other bundles ... $bundles[] = new Apnet\AsseticImporterBundle\ApnetAsseticImporterBundle(); $bundles[] = new Apnet\LayoutBundle\ApnetLayoutBundle();

Twig

Use ApnetLayoutBundle::body.html.twig as a parent for all your layout twig templates, (*5)

``` twig {% extends "ApnetLayoutBundle::body.html.twig" %}, (*6)

{% block title %}LayoutBundle{% endblock %}, (*7)

{% block stylesheets_core %} {{ parent() }}, (*8)

<link href="{{ imported_asset('...css') }}" rel="stylesheet" type="text/css" />

{% endblock %}, (*9)

{% block body_core %}, (*10)

...

{% endblock %}, (*11)

{% block javascripts_core %} {{ parent() }}, (*12)

<script type="text/javascript" src="{{ imported_asset('...js') }}"></script>

{% endblock %} ```, (*13)

The Versions

19/02 2014
31/01 2014
25/11 2013

1.0.x-dev

1.0.9999999.9999999-dev

Default layout for all sites

  Sources   Download

The Requires

 

25/11 2013

1.0.2

1.0.2.0

Default layout for all sites

  Sources   Download

The Requires