bonsoir,
je viens d'installer php5.6 sous xamp, j'appelle le fichier bootstrap.min.css depuis la page avec href="{{asset("bundles/...")}}".
tout mes fichiers css et javascript sont bien importés.
maintenant quand je met ma barre de navigation bootstrap dans ma page.twig, la barre est afficher sans CSS.
est-ce que j'ai oublié quelque chose?
Code twig : 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
21
22
23 <!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width-device-width, initial-scale=1.0"/> <title>{% block title %}Welcome!{% endblock %}</title> {% block stylesheets %} <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/> {#<link rel="stylesheet" href="{{ asset('bootstrap/css/bootstrap-responsive.min.css') }}" />#} {% endblock %} <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> </head> <body> {% block nav %}{% include "::nav.html.twig" %}{% endblock %} {% block body %}{% endblock %} {% block javascripts %} {#<script src="{{ asset('bundles/dwmcatalogue/bootstrap/js/jquery-2.1.4.min.js') }}"></script>#} <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <script src="{{ asset('bundles/dwmcatalogue/bootstrap/js/mesFonctions.js') }}"></script> {% endblock %} </body> </html>
Partager