Symfony 2.1 – 未捕获的PHP异常Twig_Error_Runtime
发布时间:2020-12-13 18:22:12 所属栏目:PHP教程 来源:网络整理
导读:尝试在Symfony 2.1中打开路由时出现此错误 我真的不知道在哪里检查.互联网上什么都没有. 非常感谢您的帮助: CRITICAL – Uncaught PHP Exception Twig_Error_Runtime: “An exception has been thrown during the rendering of a template (“Unable to gen
尝试在Symfony 2.1中打开路由时出现此错误
我真的不知道在哪里检查.互联网上什么都没有. 非常感谢您的帮助:
如果启用了探查器但缺少路由配置,则会在dev环境中抛出此异常.
Unable to generate a URL for the named route "_wdt" as such route does not exist. 请检查您的app / config / routing_dev.yml是否包含以下行: # app/config/routing_dev.yml _wdt: resource: "@WebProfilerBundle/Resources/config/routing/wdt.xml" prefix: /_wdt _profiler: resource: "@WebProfilerBundle/Resources/config/routing/profiler.xml" prefix: /_profiler 这将解决您的问题. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |