Bonjour à tous

je développe une application avec symfony2,quand je lance avec le mode developpement :app_dev.php, l'appli s'affiche sans problème ,mais lorsque je passe en mode production :app.php, j'obtiens login_check à la suite de app.php : (http://127.0.0.1/sodys/web/app.php/login_check) et en dessous une page blanche .

j'ai vérifié mes fichiers security et routing ,le login, login_check et logout sont bien définie

j'ai vidé plusieurs fois ma cache, mais j'obtiens toujours la même erreur http://127.0.0.1/sodys/web/app.php/login_check et en dessous une page blanche .

voici le fichier security
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
security:
    encoders:
        Symfony\Component\Security\Core\User\User: plaintext
        ZX\SodysBundle\Entity\User: sha512
 
    role_hierarchy:
        ROLE_ADMIN:       ROLE_USER
        ROLE_SUPER_ADMIN: [ROLE_USER, ROLE_ADMIN, ROLE_ALLOWED_TO_SWITCH]
 
    providers:
        in_memory:
            users:
                user:  { password: userpass, roles: [ 'ROLE_USER' ] }
                admin: { password: adminpass, roles: [ 'ROLE_ADMIN' ] }
        main:
            entity: { class: ZX\SodysBundle\Entity\User, property: username }
 
    firewalls:
        dev:
            pattern:  ^/(_(profiler|wdt)|css|images|js)/
            security: false
        main:
            pattern:   ^/
            anonymous: true
            provider:  main
            form_login:
                login_path: login
                check_path: login_check
            logout:
                path:   logout
                target: /login
 
    access_control:
        -  { path: ^/$, role: IS_AUTHENTICATED_ANONYMOUSLY } 
        -  { path: ^/_wdt, role: IS_AUTHENTICATED_ANONYMOUSLY }
        -  { path: ^/_profiler, role: IS_AUTHENTICATED_ANONYMOUSLY }
        -  { path: /login$, role: IS_AUTHENTICATED_ANONYMOUSLY }
        -  { path: ^/, roles: IS_AUTHENTICATED_FULLY  }
voici le fichier routing:
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
ZXSodysBundle:
     resource: "@ZXSodysBundle/Resources/config/routing.yml"
     prefix:   /
 
snowcap_im:
  resource: "@SnowcapImBundle/Resources/config/routing.yml"
 
login:
    pattern:   /login
    defaults:  { _controller: "ZXSodysBundle:Security:login" }
 
login_check:
    pattern:   /login_check
 
logout:
    pattern:   /logout
voici le logs en prod:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
[2014-02-24 10:22:10] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2014-02-24 10:22:10] request.INFO: Matched route "login" (parameters: "_controller": "ZX\SodysBundle\Controller\SecurityController::loginAction", "_route": "login") [] []
[2014-02-24 10:22:10] request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "login_check" does not exist.") in "ZXSodysBundle:Security:login.html.twig" at line 30. (uncaught exception) at C:\wamp\www\sodys\app\cache\prod\classes.php line 8562 [] []
[2014-02-24 10:22:15] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2014-02-24 10:22:15] request.INFO: Matched route "login" (parameters: "_controller": "ZX\SodysBundle\Controller\SecurityController::loginAction", "_route": "login") [] []
[2014-02-24 10:22:15] request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "login_check" does not exist.") in "ZXSodysBundle:Security:login.html.twig" at line 30. (uncaught exception) at C:\wamp\www\sodys\app\cache\prod\classes.php line 8562 [] []
[2014-02-24 10:22:23] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2014-02-24 10:22:23] request.INFO: Matched route "login" (parameters: "_controller": "ZX\SodysBundle\Controller\SecurityController::loginAction", "_route": "login") [] []
[2014-02-24 10:22:23] request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "login_check" does not exist.") in "ZXSodysBundle:Security:login.html.twig" at line 30. (uncaught exception) at C:\wamp\www\sodys\app\cache\prod\classes.php line 8562 [] []
[2014-02-24 10:22:53] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2014-02-24 10:22:53] request.INFO: Matched route "login" (parameters: "_controller": "ZX\SodysBundle\Controller\SecurityController::loginAction", "_route": "login") [] []
[2014-02-24 10:22:53] request.CRITICAL: Twig_Error_Runtime: An exception has been thrown during the rendering of a template ("Route "login_check" does not exist.") in "ZXSodysBundle:Security:login.html.twig" at line 30. (uncaught exception) at C:\wamp\www\sodys\app\cache\prod\classes.php line 8562 [] []
Comment faire pour que app.php affiche?

Merci d'avance.