Hi all,
on our live server we'd like to have all the css, js and image files
on a different server than the application server itself. On our local
installations we, however, still wanna use the files in the web folder
in the application itself.
Is there a way to define the root path/url for those files based on
the environment?
My idea was to have a variable defining this root in some settings.yml
or app.yml and just prefix every entry in the view.yml with that
variable. e.g.

app.yml:
all:
  css_root: ''
prod:
  css_root: 'http://files.server.com/css'

view.yml
default:
  stylesheets:
    "<?php echo sfConfig::get('app_css_root') . 'main.css' ?>"

Is there a better solution?

Cheers,
Lea

-- 
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

Reply via email to