How do I get the $_SERVER['HTTP_HOST'] from within a Smarty Plugin?

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
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
Comments
Maybe try using Gardens Request class:
return Gdn::Request()->Host();
That worked like a charm - Thanks R_J