{% extends "MopaBootstrapSandboxBundle::layout.html.twig" %} {% block headline %}The Basic Layout{% endblock headline %} {% block content %}
just create a file in app/Resources/MopaBootstrapBundle/views/layout.html.twig
{% raw %}
{% extends 'MopaBootstrapBundle::base.html.twig' %}
{% block title %}Yourapp{% endblock %}
{# and define more blocks ... #}
{% endraw %}
a good example is the sandbox itself:
Same as before just using initializr:
{% raw %}
{% extends 'MopaBootstrapBundle::base_initializr.html.twig' %}
{% block title %}Yourapp{% endblock %}
{# and define more blocks ... #}
{% endraw %}
or if global title is set in config.yml:
{% raw %}
{% extends 'MopaBootstrapBundle::base_initializr.html.twig' %}
{% block title %}{{ parent() }} - Example subpage{% endblock %}
{# and define more blocks ... #}
{% endraw %}
But you have at least to activate the template variables in config.yml:
mopa_bootstrap:
navbar: ~
initializr: ~
You can also configure it
To overwrite the Templates you might either use the app/Resources folder
Or create a Bundle AcmeBootstrapSomethingBundle and use the inheritance:
class AcmeBootstrapSomethingBundle extends Bundle
{
public function getParent()
{
return 'MopaBootstrapBundle';
}
}
But you have to be aware that only one Bundle in your app may extend the BootstrapBundle