Resource icon

How to Render a Widget Externally

Displaying a widget included with XenForo 2 is one line using templater() and renderWidget.

PHP:
echo \XF::app()->templater()->renderWidget('forum_overview_members_online');

The identifier is the Widget key...
You do not have permission to view the full content of this resource. Log in or register now.
Author
LPH
Views
3,244
First release
Last update
Rating
0.00 star(s) 0 ratings

More resources from LPH

Top