使用assetic服務js和css文件下面是我的代碼:在Symfony2中
<head>
{% stylesheets debug=true
'@PractoPvrBundle/Resources/public/css/bootstrap.min.css'
'@PractoPvrBundle/Resources/public/css/bootstrap-responsive.min.css'
%}
<link href="{{ asset_url }}" rel="stylesheet">
{% endstylesheets %}
</head>
我獲得以下錯誤
An exception has been thrown during the rendering of a template (\"Route \"_assetic_4fec32d_0\" does not exist.\
需要這方面的幫助。我正在關注文檔,無法找出錯誤。
你試過清除緩存? – gremo 2012-07-17 10:39:18
是的。兩次。它不工作:( – Shwetanka 2012-07-17 10:46:08
也嘗試檢查'php應用程序/控制檯資產的輸出:dump --env = dev --no-debug'。 – gremo 2012-07-17 10:48:56