binding a CSS-File should be simple in symfony 3 according to every tutorial and the documentation. But in my case, it just doesn't work.
In my base.html.twig i have
<link rel="stylesheet" href="{{asset('assets/css/main.css')}}" />
while in the folder web/assets/css/ there is a main.css file. But it just doesn't take effect.
Did I do something wrong?
EDIT:
maybe one more info.. when i look at the sourcecode there is a <link rel="stylesheet" href="/assets/css/main.css" /> in the head of the document, but when I click on the link it outputs a
No route found for "GET /assets/css/main.css" (from "http://localhost/application/3")
EDIT 2:
maybe this might help.. the log-file says
2016-06-24 18:30:32] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /css/main.css" (from "http://localhost/")" at D:\xamp\htdocs\icp\var\cache\dev\classes.php line 2357 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /css/main.css\" (from \"http://localhost/\") at D:\\xamp\\htdocs\\icp\\var\\cache\\dev\\classes.php:2357, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at D:\\xamp\\htdocs\\icp\\var\\cache\\dev\\appDevUrlMatcher.php:166)"} []
<link rel="stylesheet" href="/assets/css/main.css" />outputed where a css-selector defined and in the body there is a div with this class, but the css doesn't take effect .. just like if it would not be thereassethelper is working and you're asking for a CSS help? You failed your topic, indeed