史前史: 我创建了实体的CRUD,现在试图将我的样式应用于该CRUD的页面。 我的问题看起来像:Symfony3错误的路由为css
正如你看到的CSS文件从 “/ mannapp/vdservers” 加载,但他们应该从 “/” 加载。 我该怎么办?
路由本页:
manapp_vdservers_index:
path: /manapp/vdservers/
defaults: { _controller:MainBundle:VDServers:index }
methods: [GET]
链接资产看起来像这样:
<link href="css/general.css" rel="stylesheet">
我的水平超过1件作品不好的路线其实都:
/页 - CSS将被加载以及
/页/ 1页 - CSS将从/页加载/ CSS
相同的未解决的问题 - http://stackoverflow.com/questions/30194433/symfony-2-css-and-js-not-loaded-using-fosuserbundle-routing-bad-links –