开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜