Symfony4.3未捕获的错误:路由“ xxxx”不存在

时间:2019-08-04 02:49:31

标签: php symfony-4.3 fosjsroutingbundle

我在symfony 4.3中遇到了fosJsRouteBundle的问题,我在控制台Uncaught Error: The route "xxx" does not exist.中出错了

Uncaught Error: The route "app_autocompleted" does not exist.
    at r.value (router.min.js:1)
    at r.value (router.min.js:1)
    at HTMLDocument.<anonymous> (_search.js:12)
    at mightThrow (jquery.js:3557)
    at process (jquery.js:3625)

路由器控制器

/**
 * @Route("/{_locale}/app_autocompleted", name="app_autocompleted", options={"expose": true})
 */

php bin /控制台fos:js-routing:debug

| Name                     | Method | Scheme | Host | Path 
| app_autocompleted.pl     | ANY    | ANY    | ANY  | /{_locale}/app_autocompleted                                 |
| app_autocompleted.en     | ANY    | ANY    | ANY  | /{_locale}/app_autocompleted 

我在这里搜索解决方案,但找不到很好的ID,我认为问题出在此https://symfony.com/blog/new-in-symfony-4-1-internationalized-routing

0 个答案:

没有答案