Symfony 2 アプリケーション (バージョン 2.6.1) を開発していますが、PROD モードでしか実行できません。次の URL にアクセスしようとした場合:
http://localhost/lawAdmin/web/app_dev.php
次のエラー メッセージが表示されます。
appDevUrlGenerator.php 行 32 の RouteNotFoundException: ルートが存在しないため、名前付きルート「_profiler」の URL を生成できません。
routing.yml ファイルと routing_dev.yml ファイルはどちらも同じように見えます。
law_admin:
resource: "@LawAdminBundle/Controller/DefaultController.php"
type: annotation
prefix: /
ランニング
app/console debug:router
戻り値:
[router] Current routes
Name Method Scheme Host Path
porfolio_show GET ANY ANY /
gallery_show GET ANY ANY /gallery/{galleryId}
失敗した場合に備えて、次のコマンドも試しました。
php app/console cache:clear