Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
How do I get the $_SERVER['HTTP_HOST'] from within a Smarty Plugin?
![TheBrad](https://us.v-cdn.net/5018160/uploads/userpics/895/nUTK84IJHPUK5.jpg)
Anyone know how to get this value from within the plugin. Every time I try the page breaks.
I am trying this:
return $protocol . "://" . $_SERVER['HTTP_HOST']
Thanks
0
Comments
Maybe try using Gardens Request class:
return Gdn::Request()->Host();
That worked like a charm - Thanks R_J![:) :)](https://open.vanillaforums.com/plugins/emojiextender/emoji/little/smile.png)