IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Symfony PHP Discussion :

faire une Template (fichier twig)


Sujet :

Symfony PHP

  1. #1
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut faire une Template (fichier twig)
    Bonjour ,
    svp je suis entrain de faire le fichier twig

    lorsque j 'ai fait l 'exécution il m 'affiche cette erreur

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    An exception has been thrown during the rendering of a template ("Route "MyApp_PvJobLstLangue" does not exist.") in "MyAppemploiBundle::demo.html.twig".
    svp aide moi et merci

  2. #2
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    et le code ?

  3. #3
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Points : 347
    Points
    347
    Par défaut
    stp donnes nous ce fichier Twig !!

  4. #4
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    le fichier twig
    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
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    	<head>
    		<title>Navigation Effect Using jQuery</title>
    		{% block stylesheet %}
    		<link href="{{ asset('bundles/emploi/css/styles.css') }}" type="text/css" rel="stylesheet" />
    		<link rel="stylesheet" type="text/css" href="styles.css" />
    		{% endblock %}
    		{% block javascripts %}
    		<script type="text/javascript" src="{{ asset('bundles/emploi/js/jquery.js') }}"></script>
    		<script type="text/javascript" src="{{ asset('bundles/emploi/js/sliding_effect.js') }}"></script>
    		{% endblock %}
    	</head>
    	<body>
    	<div id="header">  </div>
    	<div id="contenaire">
    		<div id="navigation-block">
     
                <p>Menu Candidat</p>
                <ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Fiche</h3></li>
                    <li class="sliding-element"><a href="#">Ma Fiche </a></li>
                    <li class="sliding-element"><a href="#">Option Compte</a></li>
                </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Rubriques CV</h3></li>
     
                    <li class="sliding-element"><a href="{{path('PvJobLstLangue')}}">Lettre de Présentation </a></li>
                    <li class="sliding-element"><a href="#">Présentation CV</a></li>
    				<li class="sliding-element"><a href="#">Coordonnées </a></li>
                    <li class="sliding-element"><a href="#">Scolarité</a></li>
    				<li class="sliding-element"><a href="#">Expériences de Travail </a></li>
                    <li class="sliding-element"><a href="#">Compétences</a></li>
    				<li class="sliding-element"><a href="#">Références </a></li>
                    <li class="sliding-element"><a href="#">Associations</a></li>
    				<li class="sliding-element"><a href="#">Info. Générales</a></li>
    				<li class="sliding-element"><a href="#">Emploi Recherché</a></li>
                    <li class="sliding-element"><a href="#">Société Recherchée</a></li>
    				<li class="sliding-element"><a href="#">Region Visée</a></li>
                    <li class="sliding-element"><a href="#">Info.Complémentaires</a></li>
                </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Vue générale</h3></li>
                    <li class="sliding-element"><a href="#">Visualiser mon CV</a></li>
                    <li class="sliding-element"><a href="#">Verifier mon CV</a></li>
    		    </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Recherche d'emploi</h3></li>
                    <li class="sliding-element"><a href="#">Offres d'Emploi</a></li>
                    <li class="sliding-element"><a href="#">Mes Candidatures</a></li>
    				 <li class="sliding-element"><a href="#">Sociétés Sélects</a></li>
    		    </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Fermer</h3></li>
                    <li class="sliding-element"><a href="#">Fermer Session </a></li>
    		    </ul>
     
            </div>
    		<div id="content">
    						{% block body %}
    						{% endblock %}
     
    		</div>
    	</div>
    	</body>
    </html>
    et index.html.twig
    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
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    {% extends 'MyAppemploiBundle::demo.html.twig' %}
    {% block title %}{% endblock%}
    {% block body %}
     
    <h1>PvJobLstLangue list</h1>
     
    <table class="records_list">
        <thead>
            <tr>
                <th>Id</th>
                <th>Liblangue</th>
                <th>Actions</th>
            </tr>
        </thead>
        <tbody>
        {% for entity in entities %}
            <tr>
                <td><a href="{{ path('pvjoblstlangue_show', { 'id': entity.id }) }}">{{ entity.id }}</a></td>
                <td>{{ entity.libLangue }}</td>
                <td>
                    <ul>
                        <li>
                            <a href="{{ path('pvjoblstlangue_show', { 'id': entity.id }) }}">show</a>
                        </li>
                        <li>
                            <a href="{{ path('pvjoblstlangue_edit', { 'id': entity.id }) }}">edit</a>
                        </li>
                    </ul>
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
     
    <ul>
        <li>
            <a href="{{ path('pvjoblstlangue_new') }}">
                Create a new entry
            </a>
        </li>
    </ul>
    {% endblock %}

  5. #5
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    ça doit être ça qui coince
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {{path('PvJobLstLangue')}}
    vérifie que t'as bien mis définie le path

  6. #6
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    sous le fichier MyApp/emploiBundle/ressource/config/routing.yml
    j 'ai ce route la
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    MyAppemploiBundle_/PvJobLstLangue:
        resource: "routing/PvJobLstLangue.yml"
        prefix:   /PvJobLstLangue

  7. #7
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2012
    Messages
    21
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Mai 2012
    Messages : 21
    Points : 28
    Points
    28
    Par défaut
    Tu as bien déclaré ta route ?

  8. #8
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    fais un
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    php app/console router:debug

  9. #9
    Nouveau membre du Club
    Homme Profil pro
    Développeur Web
    Inscrit en
    Mai 2012
    Messages
    21
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Développeur Web

    Informations forums :
    Inscription : Mai 2012
    Messages : 21
    Points : 28
    Points
    28
    Par défaut
    Envoie le fichier : routing/PvJobLstLangue.yml

    "PvJobLstLangue" est le préfixe de ton url

    le nom des routes est : "MyAppemploiBundle_/PvJobLstLangue"

    Donc il faut que tu fasse un truc comme :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    {{path('MyAppemploiBundle_/PvJobLstLangue')}}

  10. #10
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    même erreurs lorsque j 'ai changer le path
    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
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html>
    	<head>
    		<title>Navigation Effect Using jQuery</title>
    		{% block stylesheet %}
    		<link href="{{ asset('bundles/emploi/css/styles.css') }}" type="text/css" rel="stylesheet" />
    		<link rel="stylesheet" type="text/css" href="styles.css" />
    		{% endblock %}
    		{% block javascripts %}
    		<script type="text/javascript" src="{{ asset('bundles/emploi/js/jquery.js') }}"></script>
    		<script type="text/javascript" src="{{ asset('bundles/emploi/js/sliding_effect.js') }}"></script>
    		{% endblock %}
    	</head>
    	<body>
    	<div id="header">  </div>
    	<div id="contenaire">
    		<div id="navigation-block">
     
                <p>Menu Candidat</p>
                <ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Fiche</h3></li>
                    <li class="sliding-element"><a href="#">Ma Fiche </a></li>
                    <li class="sliding-element"><a href="#">Option Compte</a></li>
                </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Rubriques CV</h3></li>
     
                    <li class="sliding-element"><a href="{{path('MyAppemploiBundle_/PvJobLstLangue')}}">Lettre de Présentation </a></li>
                    <li class="sliding-element"><a href="#">Présentation CV</a></li>
    				<li class="sliding-element"><a href="#">Coordonnées </a></li>
                    <li class="sliding-element"><a href="#">Scolarité</a></li>
    				<li class="sliding-element"><a href="#">Expériences de Travail </a></li>
                    <li class="sliding-element"><a href="#">Compétences</a></li>
    				<li class="sliding-element"><a href="#">Références </a></li>
                    <li class="sliding-element"><a href="#">Associations</a></li>
    				<li class="sliding-element"><a href="#">Info. Générales</a></li>
    				<li class="sliding-element"><a href="#">Emploi Recherché</a></li>
                    <li class="sliding-element"><a href="#">Société Recherchée</a></li>
    				<li class="sliding-element"><a href="#">Region Visée</a></li>
                    <li class="sliding-element"><a href="#">Info.Complémentaires</a></li>
                </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Vue générale</h3></li>
                    <li class="sliding-element"><a href="#">Visualiser mon CV</a></li>
                    <li class="sliding-element"><a href="#">Verifier mon CV</a></li>
    		    </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Recherche d'emploi</h3></li>
                    <li class="sliding-element"><a href="#">Offres d'Emploi</a></li>
                    <li class="sliding-element"><a href="#">Mes Candidatures</a></li>
    				 <li class="sliding-element"><a href="#">Sociétés Sélects</a></li>
    		    </ul>
    			<ul id="sliding-navigation">
                    <li class="sliding-element"><h3>Fermer</h3></li>
                    <li class="sliding-element"><a href="#">Fermer Session </a></li>
    		    </ul>
     
            </div>
    		<div id="content">
    						{% block body %}
    						{% endblock %}
     
    		</div>
    	</div>
    	</body>
    </html>

  11. #11
    Expert éminent sénior

    Profil pro
    Inscrit en
    Septembre 2010
    Messages
    7 920
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Septembre 2010
    Messages : 7 920
    Points : 10 726
    Points
    10 726
    Par défaut
    montre ton debug ...

  12. #12
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    j 'ai fait cette commande php app/console router/debug
    elle m 'affiche
    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
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    t
    pvjoblstniveauparle_update                  POST   /pvjoblstniveauparle/{id}/upd
    ate
    pvjoblstniveauparle_delete                  POST   /pvjoblstniveauparle/{id}/del
    ete
    pvjoblstniveaulu                            ANY    /pvjoblstniveauLu/
    pvjoblstniveaulu_show                       ANY    /pvjoblstniveauLu/{id}/show
    pvjoblstniveaulu_new                        ANY    /pvjoblstniveauLu/new
    pvjoblstniveaulu_create                     POST   /pvjoblstniveauLu/create
    pvjoblstniveaulu_edit                       ANY    /pvjoblstniveauLu/{id}/edit
    pvjoblstniveaulu_update                     POST   /pvjoblstniveauLu/{id}/update
     
    pvjoblstniveaulu_delete                     POST   /pvjoblstniveauLu/{id}/delete
     
    pvjoblstniveauetude                         ANY    /pvjoblstniveauetude/
    pvjoblstniveauetude_show                    ANY    /pvjoblstniveauetude/{id}/sho
    w
    pvjoblstniveauetude_new                     ANY    /pvjoblstniveauetude/new
    pvjoblstniveauetude_create                  POST   /pvjoblstniveauetude/create
    pvjoblstniveauetude_edit                    ANY    /pvjoblstniveauetude/{id}/edi
    t
    pvjoblstniveauetude_update                  POST   /pvjoblstniveauetude/{id}/upd
    ate
    pvjoblstniveauetude_delete                  POST   /pvjoblstniveauetude/{id}/del
    ete
    pvjoblstniveauecrit                         ANY    /pvjoblstniveauecrit/
    pvjoblstniveauecrit_show                    ANY    /pvjoblstniveauecrit/{id}/sho
    w
    pvjoblstniveauecrit_new                     ANY    /pvjoblstniveauecrit/new
    pvjoblstniveauecrit_create                  POST   /pvjoblstniveauecrit/create
    pvjoblstniveauecrit_edit                    ANY    /pvjoblstniveauecrit/{id}/edi
    t
    pvjoblstniveauecrit_update                  POST   /pvjoblstniveauecrit/{id}/upd
    ate
    pvjoblstniveauecrit_delete                  POST   /pvjoblstniveauecrit/{id}/del
    ete
    pvjoblstniveaucompetence                    ANY    /pvjoblstniveaucompetence/
    pvjoblstniveaucompetence_show               ANY    /pvjoblstniveaucompetence/{id
    }/show
    pvjoblstniveaucompetence_new                ANY    /pvjoblstniveaucompetence/new
     
    pvjoblstniveaucompetence_create             POST   /pvjoblstniveaucompetence/cre
    ate
    pvjoblstniveaucompetence_edit               ANY    /pvjoblstniveaucompetence/{id
    }/edit
    pvjoblstniveaucompetence_update             POST   /pvjoblstniveaucompetence/{id
    }/update
    pvjoblstniveaucompetence_delete             POST   /pvjoblstniveaucompetence/{id
    }/delete
    pvjoblstniveaucarriere                      ANY    /pvjoblstniveaucarriere/
    pvjoblstniveaucarriere_show                 ANY    /pvjoblstniveaucarriere/{id}/
    show
    pvjoblstniveaucarriere_new                  ANY    /pvjoblstniveaucarriere/new
    pvjoblstniveaucarriere_create               POST   /pvjoblstniveaucarriere/creat
    e
    pvjoblstniveaucarriere_edit                 ANY    /pvjoblstniveaucarriere/{id}/
    edit
    pvjoblstniveaucarriere_update               POST   /pvjoblstniveaucarriere/{id}/
    update
    pvjoblstniveaucarriere_delete               POST   /pvjoblstniveaucarriere/{id}/
    delete
    pvjoblstlangue                              ANY    /PvJobLstLangue/
    pvjoblstlangue_show                         ANY    /PvJobLstLangue/{id}/show
    pvjoblstlangue_new                          ANY    /PvJobLstLangue/new
    pvjoblstlangue_create                       POST   /PvJobLstLangue/create
    pvjoblstlangue_edit                         ANY    /PvJobLstLangue/{id}/edit
    pvjoblstlangue_update                       POST   /PvJobLstLangue/{id}/update
    pvjoblstlangue_delete                       POST   /PvJobLstLangue/{id}/delete
    pvjoblstetatcivil                           ANY    /pvjoblstetatcivil/
    pvjoblstetatcivil_show                      ANY    /pvjoblstetatcivil/{id}/show
    pvjoblstetatcivil_new                       ANY    /pvjoblstetatcivil/new
    pvjoblstetatcivil_create                    POST   /pvjoblstetatcivil/create
    pvjoblstetatcivil_edit                      ANY    /pvjoblstetatcivil/{id}/edit
    pvjoblstetatcivil_update                    POST   /pvjoblstetatcivil/{id}/updat
    e
    pvjoblstetatcivil_delete                    POST   /pvjoblstetatcivil/{id}/delet
    e
    pvjobempprofilsysteme                       ANY    /PvJobEmpProfilSysteme/
    pvjobempprofilsysteme_show                  ANY    /PvJobEmpProfilSysteme/{id}/s
    how
    pvjobempprofilsysteme_new                   ANY    /PvJobEmpProfilSysteme/new
    pvjobempprofilsysteme_create                POST   /PvJobEmpProfilSysteme/create
     
    pvjobempprofilsysteme_edit                  ANY    /PvJobEmpProfilSysteme/{id}/e
    dit
    pvjobempprofilsysteme_update                POST   /PvJobEmpProfilSysteme/{id}/u
    pdate
    pvjobempprofilsysteme_delete                POST   /PvJobEmpProfilSysteme/{id}/d
    elete
    pvjobemppostedisponible                     ANY    /PvJobEmpPosteDisponible/
    pvjobemppostedisponible_show                ANY    /PvJobEmpPosteDisponible/{id}
    /show
    pvjobemppostedisponible_new                 ANY    /PvJobEmpPosteDisponible/new
    pvjobemppostedisponible_create              POST   /PvJobEmpPosteDisponible/crea
    te
    pvjobemppostedisponible_edit                ANY    /PvJobEmpPosteDisponible/{id}
    /edit
    pvjobemppostedisponible_update              POST   /PvJobEmpPosteDisponible/{id}
    /update
    pvjobemppostedisponible_delete              POST   /PvJobEmpPosteDisponible/{id}
    /delete
    pvjobempemployeur                           ANY    /pvjobempemployeur/
    pvjobempemployeur_show                      ANY    /pvjobempemployeur/{id}/show
    pvjobempemployeur_new                       ANY    /pvjobempemployeur/new
    pvjobempemployeur_create                    POST   /pvjobempemployeur/create
    pvjobempemployeur_edit                      ANY    /pvjobempemployeur/{id}/edit
    pvjobempemployeur_update                    POST   /pvjobempemployeur/{id}/updat
    e
    pvjobempemployeur_delete                    POST   /pvjobempemployeur/{id}/delet
    e
    pvjobempauthentification                    ANY    /PvJobEmpAuthentification/
    pvjobempauthentification_show               ANY    /PvJobEmpAuthentification/{id
    }/show
    pvjobempauthentification_new                ANY    /PvJobEmpAuthentification/new
     
    pvjobempauthentification_create             POST   /PvJobEmpAuthentification/cre
    ate
    pvjobempauthentification_edit               ANY    /PvJobEmpAuthentification/{id
    }/edit
    pvjobempauthentification_update             POST   /PvJobEmpAuthentification/{id
    }/update
    pvjobempauthentification_delete             POST   /PvJobEmpAuthentification/{id
    }/delete
    pvjobcandscolarite                          ANY    /pvjobcandscolarite/
    pvjobcandscolarite_show                     ANY    /pvjobcandscolarite/{id}/show
     
    pvjobcandscolarite_new                      ANY    /pvjobcandscolarite/new
    pvjobcandscolarite_create                   POST   /pvjobcandscolarite/create
    pvjobcandscolarite_edit                     ANY    /pvjobcandscolarite/{id}/edit
     
    pvjobcandscolarite_update                   POST   /pvjobcandscolarite/{id}/upda
    te
    pvjobcandscolarite_delete                   POST   /pvjobcandscolarite/{id}/dele
    te
    pvjobcandregionvisee                        ANY    /pvjobcandregionvisee/
    pvjobcandregionvisee_show                   ANY    /pvjobcandregionvisee/{id}/sh
    ow
    pvjobcandregionvisee_new                    ANY    /pvjobcandregionvisee/new
    pvjobcandregionvisee_create                 POST   /pvjobcandregionvisee/create
    pvjobcandregionvisee_edit                   ANY    /pvjobcandregionvisee/{id}/ed
    it
    pvjobcandregionvisee_update                 POST   /pvjobcandregionvisee/{id}/up
    date
    pvjobcandregionvisee_delete                 POST   /pvjobcandregionvisee/{id}/de
    lete
    pvjobcandreference                          ANY    /PvJobCandReference/
    pvjobcandreference_show                     ANY    /PvJobCandReference/{id}/show
     
    pvjobcandreference_new                      ANY    /PvJobCandReference/new
    pvjobcandreference_create                   POST   /PvJobCandReference/create
    pvjobcandreference_edit                     ANY    /PvJobCandReference/{id}/edit
     
    pvjobcandreference_update                   POST   /PvJobCandReference/{id}/upda
    te
    pvjobcandreference_delete                   POST   /PvJobCandReference/{id}/dele
    te
    pvjobcandprofilsysteme                      ANY    /PvJobCandProfilSysteme/
    pvjobcandprofilsysteme_show                 ANY    /PvJobCandProfilSysteme/{id}/
    show
    pvjobcandprofilsysteme_new                  ANY    /PvJobCandProfilSysteme/new
    pvjobcandprofilsysteme_create               POST   /PvJobCandProfilSysteme/creat
    e
    pvjobcandprofilsysteme_edit                 ANY    /PvJobCandProfilSysteme/{id}/
    edit
    pvjobcandprofilsysteme_update               POST   /PvJobCandProfilSysteme/{id}/
    update
    pvjobcandprofilsysteme_delete               POST   /PvJobCandProfilSysteme/{id}/
    delete
    pvjobcandlettrepresentation                 ANY    /PvJobCandLettrePresentation/
     
    pvjobcandlettrepresentation_show            ANY    /PvJobCandLettrePresentation/
    {id}/show
    pvjobcandlettrepresentation_new             ANY    /PvJobCandLettrePresentation/
    new
    pvjobcandlettrepresentation_create          POST   /PvJobCandLettrePresentation/
    create
    pvjobcandlettrepresentation_edit            ANY    /PvJobCandLettrePresentation/
    {id}/edit
    pvjobcandlettrepresentation_update          POST   /PvJobCandLettrePresentation/
    {id}/update
    pvjobcandlettrepresentation_delete          POST   /PvJobCandLettrePresentation/
    {id}/delete
    pvjobcandlangues                            ANY    /pvjobcandlangues/
    pvjobcandlangues_show                       ANY    /pvjobcandlangues/{id}/show
    pvjobcandlangues_new                        ANY    /pvjobcandlangues/new
    pvjobcandlangues_create                     POST   /pvjobcandlangues/create
    pvjobcandlangues_edit                       ANY    /pvjobcandlangues/{id}/edit
    pvjobcandlangues_update                     POST   /pvjobcandlangues/{id}/update
     
    pvjobcandlangues_delete                     POST   /pvjobcandlangues/{id}/delete
     
    pvjobcandinformationsgenerales              ANY    /PvJobCandInformationsGeneral
    es/
    pvjobcandinformationsgenerales_show         ANY    /PvJobCandInformationsGeneral
    es/{id}/show
    pvjobcandinformationsgenerales_new          ANY    /PvJobCandInformationsGeneral
    es/new
    pvjobcandinformationsgenerales_create       POST   /PvJobCandInformationsGeneral
    es/create
    pvjobcandinformationsgenerales_edit         ANY    /PvJobCandInformationsGeneral
    es/{id}/edit
    pvjobcandinformationsgenerales_update       POST   /PvJobCandInformationsGeneral
    es/{id}/update
    pvjobcandinformationsgenerales_delete       POST   /PvJobCandInformationsGeneral
    es/{id}/delete
    pvjobcandinformationscomplementaires        ANY    /PvJobCandInformationsComplem
    entaires/
    pvjobcandinformationscomplementaires_show   ANY    /PvJobCandInformationsComplem
    entaires/{id}/show
    pvjobcandinformationscomplementaires_new    ANY    /PvJobCandInformationsComplem
    entaires/new
    pvjobcandinformationscomplementaires_create POST   /PvJobCandInformationsComplem
    entaires/create
    pvjobcandinformationscomplementaires_edit   ANY    /PvJobCandInformationsComplem
    entaires/{id}/edit
    pvjobcandinformationscomplementaires_update POST   /PvJobCandInformationsComplem
    entaires/{id}/update
    pvjobcandinformationscomplementaires_delete POST   /PvJobCandInformationsComplem
    entaires/{id}/delete
    pvjobcandexperiencetravail                  ANY    /PvJobCandExperienceTravail/
    pvjobcandexperiencetravail_show             ANY    /PvJobCandExperienceTravail/{
    id}/show
    pvjobcandexperiencetravail_new              ANY    /PvJobCandExperienceTravail/n
    ew
    pvjobcandexperiencetravail_create           POST   /PvJobCandExperienceTravail/c
    reate
    pvjobcandexperiencetravail_edit             ANY    /PvJobCandExperienceTravail/{
    id}/edit
    pvjobcandexperiencetravail_update           POST   /PvJobCandExperienceTravail/{
    id}/update
    pvjobcandexperiencetravail_delete           POST   /PvJobCandExperienceTravail/{
    id}/delete
    pvjobcanddernierinscription                 ANY    /PvJobCandDernierInscription/
     
    pvjobcanddernierinscription_show            ANY    /PvJobCandDernierInscription/
    {id}/show
    pvjobcanddernierinscription_new             ANY    /PvJobCandDernierInscription/
    new
    pvjobcanddernierinscription_create          POST   /PvJobCandDernierInscription/
    create
    pvjobcanddernierinscription_edit            ANY    /PvJobCandDernierInscription/
    {id}/edit
    pvjobcanddernierinscription_update          POST   /PvJobCandDernierInscription/
    {id}/update
    pvjobcanddernierinscription_delete          POST   /PvJobCandDernierInscription/
    {id}/delete
    pvjobcandcv                                 ANY    /PvJobCandCv/
    pvjobcandcv_show                            ANY    /PvJobCandCv/{id}/show
    pvjobcandcv_new                             ANY    /PvJobCandCv/new
    pvjobcandcv_create                          POST   /PvJobCandCv/create
    pvjobcandcv_edit                            ANY    /PvJobCandCv/{id}/edit
    pvjobcandcv_update                          POST   /PvJobCandCv/{id}/update
    pvjobcandcv_delete                          POST   /PvJobCandCv/{id}/delete
    pvjobcandcoordonnees                        ANY    /PvJobCandCoordonnees/
    pvjobcandcoordonnees_show                   ANY    /PvJobCandCoordonnees/{id}/sh
    ow
    pvjobcandcoordonnees_new                    ANY    /PvJobCandCoordonnees/new
    pvjobcandcoordonnees_create                 POST   /PvJobCandCoordonnees/create
    pvjobcandcoordonnees_edit                   ANY    /PvJobCandCoordonnees/{id}/ed
    it
    pvjobcandcoordonnees_update                 POST   /PvJobCandCoordonnees/{id}/up
    date
    pvjobcandcoordonnees_delete                 POST   /PvJobCandCoordonnees/{id}/de
    lete
    pvjobcandcompetences                        ANY    /PvJobCandCompetences/
    pvjobcandcompetences_show                   ANY    /PvJobCandCompetences/{id}/sh
    ow
    pvjobcandcompetences_new                    ANY    /PvJobCandCompetences/new
    pvjobcandcompetences_create                 POST   /PvJobCandCompetences/create
    pvjobcandcompetences_edit                   ANY    /PvJobCandCompetences/{id}/ed
    it
    pvjobcandcompetences_update                 POST   /PvJobCandCompetences/{id}/up
    date
    pvjobcandcompetences_delete                 POST   /PvJobCandCompetences/{id}/de
    lete
    pvjobcandassociations                       ANY    /PvJobCandAssociations/
    pvjobcandassociations_show                  ANY    /PvJobCandAssociations/{id}/s
    how
    pvjobcandassociations_new                   ANY    /PvJobCandAssociations/new
    pvjobcandassociations_create                POST   /PvJobCandAssociations/create
     
    pvjobcandassociations_edit                  ANY    /PvJobCandAssociations/{id}/e
    dit
    pvjobcandassociations_update                POST   /PvJobCandAssociations/{id}/u
    pdate
    pvjobcandassociations_delete                POST   /PvJobCandAssociations/{id}/d
    elete
    pvjobadminlistemail                         ANY    /PvJobAdminListeMail/
    pvjobadminlistemail_show                    ANY    /PvJobAdminListeMail/{id}/sho
    w
    pvjobadminlistemail_new                     ANY    /PvJobAdminListeMail/new
    pvjobadminlistemail_create                  POST   /PvJobAdminListeMail/create
    pvjobadminlistemail_edit                    ANY    /PvJobAdminListeMail/{id}/edi
    t
    pvjobadminlistemail_update                  POST   /PvJobAdminListeMail/{id}/upd
    ate
    pvjobadminlistemail_delete                  POST   /PvJobAdminListeMail/{id}/del
    ete
     
    C:\wamp\www\Symfony>

  13. #13
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Points : 347
    Points
    347
    Par défaut
    Citation Envoyé par stealth35 Voir le message
    fais un
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    php app/console router:debug
    est ce que t'as fais la commande tu verra si ton path existe ou pas !!

  14. #14
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    svp aide moi

  15. #15
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Points : 347
    Points
    347
    Par défaut
    je crois que c'est ça tu fais ton path tout en minuscule dans ton fichier twig : ligne 29

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <li class="sliding-element"><a href="{{path('pvjoblstlangue')}}">Lettre de Présentation </a></li>

  16. #16
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    merci Beaucoup

  17. #17
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    Bonjour,

    s 'il vous plait si je veux afficher directement le formulaire de create ou edit comment j 'écris le chemin path ?

  18. #18
    Membre averti
    Homme Profil pro
    Développeur Web
    Inscrit en
    Avril 2012
    Messages
    394
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Développeur Web
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 394
    Points : 347
    Points
    347
    Par défaut
    Tu fais ceci :

    chemin edit :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <a href="{{ path('taRoute_edit', { 'id': entity.id }) }}">
    chemin create :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    <a href="{{ path('taRoute_new'}}">

  19. #19
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    j 'ai ecrit ce ligne mais elle m affiche un erreur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    				<li class="sliding-element"><a href="{{path ('pvjobcandemploirecherche_edit, { 'id': PvJobCandEmploiRecherche.id }) }}')}}">Emploi Recherché</a></li>
    voila l 'erreur
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Arguments must be separated by a comma. Unexpected token "name" of value "id" ("punctuation" expected with value ",") in MyAppemploiBundle::demo.html.twig at line 38

  20. #20
    Inactif
    Inscrit en
    Novembre 2010
    Messages
    187
    Détails du profil
    Informations forums :
    Inscription : Novembre 2010
    Messages : 187
    Points : 27
    Points
    27
    Par défaut
    j 'ai corrigé le code :
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    				<li class="sliding-element"><a href="{{path ('pvjobcandemploirecherche_edit', { 'id': PvJobCandEmploiRecherche.id }) }}">Emploi Recherché</a></li>
    mais elle m 'affiche
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    Variable "pvjobcandemploirecherche" n'existe pas dans "MyAppemploiBundle :: demo.html.twig"

Discussions similaires

  1. faire une Template avec jquery
    Par marwazmandar dans le forum jQuery
    Réponses: 0
    Dernier message: 26/06/2012, 12h49
  2. Faire une recherche dans un fichier XML
    Par Devilish_Seraph dans le forum XML/XSL et SOAP
    Réponses: 7
    Dernier message: 21/01/2006, 13h41
  3. Faire une liaison externe avec un fichier xml
    Par vodevil dans le forum Général JavaScript
    Réponses: 1
    Dernier message: 11/01/2006, 11h18
  4. [DBF] Comment faire une insertion dans le fichier ?
    Par dor_boucle dans le forum Autres SGBD
    Réponses: 1
    Dernier message: 14/12/2005, 07h46
  5. Comment faire une insertion dans un fichier texte ?
    Par Isa31 dans le forum Langage
    Réponses: 10
    Dernier message: 28/12/2004, 09h06

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo