bocharsky-bw / skeleton-bundle
The HTML markup skeleton of base templates for Symfony Framework
Installs: 27
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/bocharsky-bw/skeleton-bundle
Requires
- symfony/framework-bundle: ~2.0
- twig/twig: ~1
This package is auto-updated.
Last update: 2022-02-01 12:43:04 UTC
README
The HTML markup skeleton of base templates for Symfony Framework
This bundle no more maintained
The development has moved to a new repository.
Install
Install bundle with Composer
dependency manager first by running the command:
$ composer require "bocharsky-bw/skeleton-bundle:dev-master"
Composer
will install the bundle to your project's vendor
directory.
Include
Including the bundle to your Symfony
project is as easy as to do a few simple steps.
- Enable the bundle in application kernel for
prod
environment:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // other bundles... new BW\SkeletonBundle\BWSkeletonBundle(), ); }
- Add few parameters used in the skeleton templates
(You should to add this parameters in both
parameters.yml
andparameters.yml.dist
files inapp/config
folder):
# app/config/parameters.yml # app/config/parameters.yml.dist parameters: locale: ru title_prefix: ~ title_suffix: ~ description_prefix: ~ description_suffix: ~
- Import config resource to passed parameters to the skeleton templates as global twig variables:
# app/config/config.yml imports: - { resource: "@BWSkeletonBundle/Resources/config/config.yml" }
- Register the bundle's routes for
dev
environment (optional, if you want to see examples):
# app/config/routing_dev.yml _bw_skeleton_bundle: resource: "@BWSkeletonBundle/Resources/config/routing.yml" prefix: /_bw
Congratulations!
You're ready to rock your templates to extends skeleton templates!