The default template for rofil application
This bundle is used as default theme of my symfony project. This theme is based on bootstrap css framework., (*1)
Add to composer.json, (*2)
... "rofil/template-master": "master-dev" ...
update composer.json by running, (*3)
... $ composer update ...
register the bundle in appkernel.php, (*4)
... new Rofil\Template\MasterBundle\RofilTemplateMasterBundle(), ...
in app/config/config.yml, (*5)
... assetic: ... bundles: [ "RofilTemplateMasterBundle" ] ...
twig: ... form: resources: - 'RofilTemplateMaster:Form:fields.html.twig'app/console assets:install
##Dump Asset####Assetic Dumpphp app/console assetic:dump##Usage## in template you can extends our template by using{% extends("RofilTemplateMasterBundle:one-column.html.twig") %} {% block "content" %} ... {% endblock %}{% extends("RofilTemplateMasterBundle:one-column.html.twig") %} {% block "sidebar" %} ... {% endblock %} {% block "content" %} ... {% endblock %}
for one column template or for two column template by using
the available block that availabel to override are header
, navigation
, title
, layout
and footer
., (*6)