j'ai cree un projet symfony2 qui fonction bien dans le mode de developpement(app_div.php) mais au mode production (app.php) les pages au se trouve pas le code ajax il fonction bien mais la page dont j'ai met un code ajax pour envoyé et recuperé les données au debut cette page fonction mais si je clique sur un button pour actualiser la page la page est resté toujours en chargement mais lorsque j'ai mis ce code :

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
$template = $this->render("vue.html.twig", array(
    'variable1' => $variable1,
    'variable2' => $variable2,
    'variable3' => $variable3,
));
 
return json_encode(array(
    'html' => $template;
))
Et coté vue tu récupère le html en JS avec $('#perio').html(data.html);

au lieu de
return
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
$this->render('calendrierrendezvousBundle:ajout:calendrier.html.twig',array(
            'dates' => $dates, 'year' => $year,'date' => $date,'liste'=>$liste
        ));
maintenant la page on 2 mode est resté toujours en chargement

et grace à firebug pour firefox j'ai la réponse suivante:
Code html : 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
<body>
                    <div id="sf-resetcontent" class="sf-reset">
                <h1>Whoops, looks like something went wrong.</h1>
                                        <div class="block_exception clear_fix">
                            <h2><span>1/1</span> <abbr title="ErrorException">ErrorException</abbr>: Catchable Fatal Error: Argument 1 passed to AppCache::invalidate() must be an instance of Request, instance of Symfony\Component\HttpFoundation\Request given, called in C:\wamp\www\CRM\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpCache\HttpCache.php on line 190 and defined in C:\wamp\www\CRM\app\AppCache.php line 22</h2>
                        </div>
                        <div class="block">
                            <ol class="traces list_exception">
       <li> in C:\wamp\www\CRM\app\AppCache.php line 22</li>
       <li>at <abbr title="Symfony\Component\HttpKernel\Debug\ErrorHandler">ErrorHandler</abbr>->handle('4096', 'Argument 1 passed to AppCache::invalidate() must be an instance of Request, instance of Symfony\Component\HttpFoundation\Request given, called in C:\wamp\www\CRM\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpCache\HttpCache.php on line 190 and defined', 'C:\wamp\www\CRM\app\AppCache.php', '22', <em>array</em>()) in C:\wamp\www\CRM\app\AppCache.php line 22</li>
       <li>at <abbr title="AppCache">AppCache</abbr>->invalidate(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>), <em>true</em>) in C:\wamp\www\CRM\vendor\symfony\symfony\src\Symfony\Component\HttpKernel\HttpCache\HttpCache.php line 190</li>
       <li>at <abbr title="Symfony\Component\HttpKernel\HttpCache\HttpCache">HttpCache</abbr>->handle(<em>object</em>(<abbr title="Symfony\Component\HttpFoundation\Request">Request</abbr>)) in C:\wamp\www\CRM\web\app.php line 24</li>
    </ol>
</div>
 
            </div>
    </body>


aussi j'ai ce message
NetworkError: 500 Internal Server Error - http://localhost/CRM/web/app.php/calendrier/ajout/