Fixed with config:
assetic:
debug: %kernel.debug%
use_controller: false
read_from: %kernel.root_dir%/../web/bundles/mybundle/themes/
%my_theme%
write_to: %kernel.root_dir%/../web
filters:
yui_css:
jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
yui_js:
jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
And in layout I have:
{% stylesheets 'css/*' filter='?yui_css' %}
<link rel="stylesheet" type="text/css" media="all"
href="{{ asset_url }}" />
{% endstylesheets %}
On Apr 29, 1:13 pm, umpirsky <[email protected]> wrote:
> I want basicthemingsupport in my Symfony2 project, so I wanted to
> have separated static files (css, js, img) for each theme.
>
> I have tried to add
>
> assetic:
> read_from: %kernel.root_dir%/../web/themes/mytheme
> but this took no effect, my {{ asset('css/style.css') }} are still
> referencing realtic to %kernel.root_dir%/../web, instead
> %kernel.root_dir%/../web/themes/mytheme.
>
> Any idea?
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en