Marcus
Well-known member
In the widget I want to access http headers. In templates I can do that with $xf.request.getServer. With get I access the private #-elements. However in the widget, that does not work.
This works in the widget to display variables: {{dump($xf.request)}}
How can I get the elements like #server when I am "in the widget"? Thanks.
Code:
array:5 [▼
"xf" => array:37 [▼
"request" => Request {[Ctrl+click] Expand all children" target="_blank">#228 ▼
#server: array:59 [▼
"USER" => "www-data"
"HOME" => "/var/www"
How can I get the elements like #server when I am "in the widget"? Thanks.
Last edited: