草庐IT

FOSJsRoutingBundle

全部标签

javascript - FOSJsRoutingBundle 不识别路由

我正在尝试使用FOSJsRoutingBundle从symfony路由生成url。我关注doc.我将这些文件包含到我的base.html.twig中:{%blockscripting%}......{%endblock%}并且不会出现包含错误。但是尝试生成url失败:console.log(Routing.generate('usuarios_crear'));GEThttp://appsmanantiales.local/web/app_dev.php/js/routing?callback=fos.Router.setData500(InternalServerError)list

php - FOSJSRoutingBundle : "Route xxx does not exist"

我在使用FOSJSRoutingBundle时遇到了一个非常奇怪的问题:首先,这是我的配置:我正在使用Symfony2.0.23和JQuery,在带有WAMP(Apache2.4.2和PHP5.4.3)的Windows764位上工作。我已经完成了FOSJSRoutingBundle的github上的所有设置,并公开了我的路线(我可以通过谷歌搜索找到的几乎所有相关问题(在FOSJSRoutingBundle的github、here和不同的论坛上)都是因为人们没有公开他们的路线,但我试过了phpapp/consolefos:js-routing:debug并且我确实看到了我的路由)。js添