Yes, you need to set use_controller to false in your configuration and run
assetic:dump —watch —env=$ENV. That command will run in the background and
regenerate static assets when it detects a change.
Please let me know if you have any other questions.
Thanks,
Kris
On Thursday, May 12, 2011 at 8:35 AM, Venzon wrote:
Is is possible to setup assetic for debug mode in a way when urls to
> javascripts/stylesheets will be not routed by controller and will be
> linked from their base location?
>
> For example such code:
>
> <?php foreach ($view['assetic']->javascripts(array('js/script1.js',
> 'js/jquery/script2.js'), array()) as $url): ?>
>
> will print in debug mode:
>
> <script src="/js/script1.js"></script>
> <script src="/js/jquery/script2.js"></script>
>
> Using controller routing takes a lot of time and resources.
>
> If such possibility does not exists then maybe it will be worth to add
> it to assetic. Routing 10-20 files thru controller is really painful.
>
> --
> 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 developers" 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-devs?hl=en
>
--
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 developers" 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-devs?hl=en