Pages

bootstap et synfony2 integration sujet

vendredi 31 janvier 2014




Bonjour

j'ai télécharger le bootstap mais j'ai un problème lors de l'intégration dans synfony2
si j'ai fait l'actualisation de la page il m'affiche la forme classique
voici mon code
fichier base.html.twil

Code:


<!DOCTYPE html>
<html>
    <head>
      <meta charset="UTF-8" />
        <title>{% block title %}Mon premier site web{% endblock %}</title>
   
        {% block stylesheets %}
                <link rel="stylesheets" href="{{ asset('bundles/gestionuser/css/bootstrap.css') }}" />
                {% endblock %}
        <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" />
    </head>
    <body>
        {% block body %}{% endblock %}
        {% block javascripts %}
                 
                {% endblock %}
    </body>
</html>


le fichier index.html.twig

Code:


{% extends('::base.html.twig') %}

{% block stylesheets %}

{% endblock %}
{% block body %}
 
<ul class="nav nav-pills">
  <li class="active"><a href="#">Home</a></li>
  <li><a href="#">Profile</a></li>
  <li><a href="#">Messages</a></li>
</ul>

{% endblock %}


a noter j'ai mis le trois dossier dans le UserProject/src/Gestion/Ressources/public
et puis avec le invite de commande j'ai entré asset instal




Aucun commentaire:

Enregistrer un commentaire