Bonjour,
J'essaye de me mettre au bootstrap mais j'ai un petit soucis. J'ai suivi l'installation :
et
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 { "require": { "mopa/bootstrap-bundle": "dev-master", } }
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 // application/ApplicationKernel.php public function registerBundles() { return array( // ... new Mopa\Bundle\BootstrapBundle\MopaBootstrapBundle(), // ... ); }et j'ai l'erreur suivante:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 {% extends 'MopaBootstrapBundle::base.html.twig' %} {% block title %}Yourapp{% endblock %} {# and define more blocks ... #}
dans base.html.twig du bundle:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 An exception has been thrown during the compilation of a template ("Unable to find file "@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-transition.js".") in "::base.html.twig".
Hors les fichiers js n'existent pas. Je ne comprends pas, il faut modifier le fichier base.html.twig du bundle et supprimer tout ces fichiers js ?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 {% javascripts 'http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-transition.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-alert.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-modal.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-dropdown.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-scrollspy.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-tab.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-tooltip.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-popover.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-button.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-collapse.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-carousel.js' '@MopaBootstrapBundle/Resources/bootstrap/js/bootstrap-typeahead.js' '@MopaBootstrapBundle/Resources/public/js/mopabootstrap-collection.js' '@MopaBootstrapBundle/Resources/public/js/mopabootstrap-subnav.js' '@MopaBootstrapBundle/Resources/public/js/eyecon-bootstrap-datepicker.js' %}
Merci.
Partager