How to get the host name in symfony?
if native php, i can do it like that: $_SERVER['SERVER_NAME'];
what about in symfon开发者_运维问答y? what should I use?
The sfAction class have a method called getHost(). I guess it's that you need, but you need to call it from an instance.
精彩评论