Hi folks I tried to get Assetic (AsseticBundle) fully working but encounterd some troubles, maybe somebody encountered the same problems and resolved those issues.
The Symfony2 installation is the normal Symfony2 PR8 release with the delivered AsseticBundle. Configuration is like given and just adjusted with write_to and read_from settings (fround from http://www.slideshare.net/kriswallsmith/assetic-symfony-live-paris - slide #116): File: app/config/config.yaml # Assetic Configuration assetic: debug: %kernel.debug% use_controller: false read_from: %kernel.root_dir%/../web/bundles write_to: %kernel.root_dir%/../web/assets File: app/config/config_dev.yaml assetic: use_controller: true File: app/config/rounting_dev.yaml _assetic: resource: . type: assetic Assets are symlinked with app:console assets:install --symlink web and accessible. In my view I have the following code to generate assets: File: @MyBundle/Resources/views/layout.twig.html {% assets 'mybundle/css/*.css' output='css/all.css' %} {{ asset_url }} {% endassets %} Exactly one file called test.css can be found in mybundle/css File: web/bundles/mybundle/css/test.css body { background: red; } In 'dev' environment: When I watch assetic via app/console assetic:dump --watch, I can see assetic generating the following file: [file+] [...]/web/assets/css/all_part1_part1.css Problems: First the generated File is empty and in my layout.html.twig it will print out the file path '/css/all_part1_part1.css' Second, if I switch to environment 'prod' it prints out '/css/all.css' but don't generates any file, if I navigate via browser to the url / assets/css/all.cs or /css/all.css a 404 response is returned by Symfony2. For any advices I would be really thankfull :) Greetings, Sven PS: I would as well post the solution on symfony2tips.blogspot.com to help other people -- 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
