'FOSJSRoutingBundle : "The route xxx does not exist"
I created a new controller with a new route. I dump generate my new fos_js-routes.json
with this command :
php bin/console fos:js-routing:dump
My new json was generate with my new route. I dump all routes with this command :
php bin/console fos:js-routing:debug
In all results I find my new route name, but when I click on the button which calls this route, in my console I have this error :
router.min.js:1 Uncaught (in promise) Error: The route
"territory_territoriesHistoryByUser" does not exist.
My controller Route declaration looks like that :
@Route("/getTerritoriesHistoryByUser", options={"expose"=true}, name="territory_territoriesHistoryByUser")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|