Hello,

Symfony1 already sort of allows for host based configuration files
with minimal hacking.

[database.yml/app.yml/settings.yml]
dev.localhost:
  param: "..."

prod.remotehost:
  param: "..."

[index.php]
...
$configuration =
ProjectConfiguration::getApplicationConfiguration('frontend',
$_SERVER['HTTP_HOST'], false);
...

This seems to do the trick for us on apache2 at least, YMMV.

---
Dmitri

On Sep 27, 10:02 pm, Thomas Rabaix <[email protected]> wrote:
> Hello,
>
> One thing very frustrating with symfony 1 is there is no configuration per
> host available.
> It will be great if this feature can be built-in into the Symfony2 core.
>
> What do you think ?
>
> --
> Thomas Rabaixhttp://rabaix.net

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

Reply via email to