Bonjour,
J'ai un petit problème de routing ou d'affichage du mode développeur depuis que j'ai installé SF2 puis supprimé le bundle de Acme puis installé FOSUSER.
mon domaine est : test.dev
test.dev/login affiche le formulaire de connexion
test.dev/app_dev.php/login affiche une erreur «
No route found for "GET in"
404 Not Found - NotFoundHttpException
1 linked Exception:
ResourceNotFoundException »
»
"GET in" c'est "login" coupé.
Ainsi pour l'url test.dev/app_dev.php/profile j'ai l'erreur
No route found for "GET file"
, la vue profile s'affiche bien en mode normale.
Voici mon .htaccess :
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
# Explicitly disable rewriting for front controllers
RewriteRule ^/web/app_dev.php - [L]
RewriteRule ^/web/app.php - [L]
# Fix the bundles folder
RewriteRule ^bundles/(.*)$ /web/bundles/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
# Change below before deploying to production
#RewriteRule ^(.*)$ /web/app.php [QSA,L]
RewriteRule ^(.*)$ /web/app_dev.php [QSA,L]
</IfModule>
Voici le debug de mes routes :
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
|
$ php app/console router:debug
[router] Current routes
Name Method Host Pattern
_wdt ANY ANY /_wdt/{token}
_profiler_home ANY ANY /_profiler/
_profiler_search ANY ANY /_profiler/search
_profiler_search_bar ANY ANY /_profiler/search_bar
_profiler_purge ANY ANY /_profiler/purge
_profiler_info ANY ANY /_profiler/info/{about}
_profiler_import ANY ANY /_profiler/import
_profiler_export ANY ANY /_profiler/export/{token}.txt
_profiler_phpinfo ANY ANY /_profiler/phpinfo
_profiler_search_results ANY ANY /_profiler/{token}/search/results
_profiler ANY ANY /_profiler/{token}
_profiler_router ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY /_profiler/{token}/exception.css
_configurator_home ANY ANY /_configurator/
_configurator_step ANY ANY /_configurator/step/{index}
_configurator_final ANY ANY /_configurator/final
homepage ANY ANY /
bc_user_hello ANY ANY /hello/{name}
fos_user_security_login ANY ANY /login
fos_user_security_check ANY ANY /login_check
fos_user_security_logout ANY ANY /logout
fos_user_profile_show GET ANY /profile/
fos_user_profile_edit ANY ANY /profile/edit
fos_user_registration_register ANY ANY /register/
fos_user_registration_check_email GET ANY /register/check-email
fos_user_registration_confirm GET ANY /register/confirm/{token}
fos_user_registration_confirmed GET ANY /register/confirmed
fos_user_resetting_request GET ANY /resetting/request
fos_user_resetting_send_email POST ANY /resetting/send-email
fos_user_resetting_check_email GET ANY /resetting/check-email
fos_user_resetting_reset GET|POST ANY /resetting/reset/{token}
fos_user_change_password GET|POST ANY /profile/change-password |
Voici le contenu de routing.yml :
bc_main:
resource: "@BcMainBundle/Controller/"
type: annotation
prefix: /
bc_user:
resource: "@BcUserBundle/Controller/"
type: annotation
prefix: /
fos_user_security:
resource: "@FOSUserBundle/Resources/config/routing/security.xml"
fos_user_profile:
resource: "@FOSUserBundle/Resources/config/routing/profile.xml"
prefix: /profile
fos_user_register:
resource: "@FOSUserBundle/Resources/config/routing/registration.xml"
prefix: /register
fos_user_resetting:
resource: "@FOSUserBundle/Resources/config/routing/resetting.xml"
prefix: /resetting
fos_user_change_password:
resource: "@FOSUserBundle/Resources/config/routing/change_password.xml"
prefix: /profile
voici le contenu de routing_dev.yml :
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml"
prefix: /_wdt
_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml"
prefix: /_profiler
_configurator:
resource: "@SensioDistributionBundle/Resources/config/routing/webconfigurator.xml"
prefix: /_configurator
_main:
resource: routing.yml
Pouvez-vous m'aider à corriger ce problème s'il vous plait ? Merci pour vos propositions.
Partager