CedNet
Member
New to XF (2) and migrated a large site from vB 4 this weekend.
Intend to use XF outside of the forum. I'm loading the XF framework as per guides I've found here and \XF::start(). It all works and I can get the currently logged in user.
But I can't figure out how to load a specific template, and also parse it and get the actual ready html.
Specifically I want the: helper_js_global, parse from the current XF User / Visitor.
How can I do this?
I've tried this: \XF::app()->templater()->renderTemplate('public:helper_js_global', []) and it turns into an empty string.
Intend to use XF outside of the forum. I'm loading the XF framework as per guides I've found here and \XF::start(). It all works and I can get the currently logged in user.
But I can't figure out how to load a specific template, and also parse it and get the actual ready html.
Specifically I want the: helper_js_global, parse from the current XF User / Visitor.
How can I do this?
I've tried this: \XF::app()->templater()->renderTemplate('public:helper_js_global', []) and it turns into an empty string.
Last edited: