The right way to handle it is via a filter. You /could/ set it in the front controller via some kind of conditional block, but it is better to keep everything in its correct place.
On Mon, Jun 30, 2008 at 5:14 PM, Jacob Coby <[EMAIL PROTECTED]> wrote: > > Hi All, > > I've been asked this question a few times now, so I thought I'd ask > the group for their opinion. > > What's the "proper" way to handle a domain prefix? The goal is to set > some sort of request variable (or perhaps set the dimension for > ysfDimensionsPlugin). e.g., "foo.example.com" would set the > $dimension='foo'; "bar.example.com" would set $dimension='bar', etc. > Ideally, it would also have to be usable in a situation where the > domain prefix isn't changeable- pass in a URL parameter instead (think > a dev environment on a shared host). > > To me, it appears to be a job for either filters or a fixture. What's > everyone else's take? > > -- > Jacob Coby > [EMAIL PROTECTED] > > > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
