I've trying figure out how to install Braincrafted/Bundle/BootstrapBundle
into PHP Bolt CMS and take advantage of Boostrap Twig Templates Tags for my Bolt theme. But sadly come to a dead-end at install. :(
Since both are based on the Symfony Framework, the idea of adding "braincrafted/bootstrap-bundle": "~2.0"
to my composer.json
, ignore the Assetic Management part and adding the following to app/AppKernel.php
sounded possible.
class AppKernel extends Kernel {
public function registerBundles() {
$bundles = array(new Braincrafted\Bundle\BootstrapBundle\BraincraftedBootstrapBundle());
return $bundles;
}
}
But where is "class AppKernel extends Kernel
" in my Php Bolt Application?
I'm guessing the index.php
would be a start, or should I build a Php Bolt Extension path?
All I want is:
{{ knp_menu_render(menu, { 'style': 'tabs' }) }}
and
<form action="..." method="..." class="form-horizontal">
{{ bootstrap_set_style('horizontal') }}
{{ form_row(form.firstName) }}
{{ form_row(form.lastName) }}
{{ bootstrap_set_style('') }}
</form>
{{ label_success('Success') }}
Thanks to anyone for help. P.S Php Bolt is +1 for ME so far :)