Le 17/06/2011 15:29, Benjamin RICHARD a écrit :
Hi,

in my template i do this :

{% stylesheets '@MyBundle/Resources/public/css/main.css' output='css/main.css' %}
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" />
{% endstylesheets %}

when i access to the controller in dev mode, it works : main.css is well downloaded. But when i try in prod mode with app.php, it fails : main.css return a 404 file not found

What's wrong ?

--
Benjamin RICHARD

In prod, the SE does not configure Assetic to use the controller (as it has really bad performances). So you need to use the assetic:dump command

--
Christophe | Stof

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to