RSS Feed/News Widget condition to get the #-elements like HTTP headers

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
24,664
Points
823

Reputation:

In the widget I want to access http headers. In templates I can do that with $xf.request.getServer. With get I access the #-elements. However in the widget, that does not work.

Code:

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"

This works in the templates: {{dump($xf.request.getServer)}} but...

Read more

Continue reading...
 
Status
Not open for further replies.
Top