To kick start development

just create a file in app/Resources/MopaBootstrapBundle/views/layout.html.twig


{% extends 'MopaBootstrapBundle::base.html.twig' %}

{% block title %}Yourapp{% endblock %}

{# and define more blocks ... #}

    

a good example is the sandbox itself:

Use initializr

Same as before just using initializr:


{% extends 'MopaBootstrapBundle::base_initializr.html.twig' %}

{% block title %}Yourapp{% endblock %}

{# and define more blocks ... #}

    

or if global title is set in config.yml:


{% extends 'MopaBootstrapBundle::base_initializr.html.twig' %}

{% block title %}{{ parent() }} - Example subpage{% endblock %}

{# and define more blocks ... #}

    

But you have at least to activate the template variables in config.yml:

mopa_bootstrap:
    navbar: ~
    initializr: ~
    

You can also configure it

Using Bundles

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

Fork me on GitHub