【发布时间】:2016-07-18 10:56:44
【问题描述】:
我已经安装了 Symfony 3 并根据文档 http://symfony.com/doc/current/cookbook/configuration/web_server_configuration.html 配置了一个 nginx。我打开 app_dev.php,Symfony 向 /_wdt 发送 ajax 请求,但得到 404 错误。 我检查了路线:
Name Method Scheme Host Path
-------------------------- -------- -------- ------ -----------------------------------
_wdt ANY ANY ANY /_wdt/{token}
_profiler_home ANY ANY ANY /_profiler/
_profiler_search ANY ANY ANY /_profiler/search
_profiler_search_bar ANY ANY ANY /_profiler/search_bar
_profiler_info ANY ANY ANY /_profiler/info/{about}
_profiler_phpinfo ANY ANY ANY /_profiler/phpinfo
_profiler_search_results ANY ANY ANY /_profiler/{token}/search/results
_profiler ANY ANY ANY /_profiler/{token}
_profiler_router ANY ANY ANY /_profiler/{token}/router
_profiler_exception ANY ANY ANY /_profiler/{token}/exception
_profiler_exception_css ANY ANY ANY /_profiler/{token}/exception.css
_twig_error_test ANY ANY ANY /_error/{code}.{_format}
homepage ANY ANY ANY /
-------------------------- -------- -------- ------ -----------------------------------
_wdt 路由存在。为什么它不起作用?
【问题讨论】:
标签: symfony