AndyB
Well-known member
In an add-on I'm creating, I make changes to the execution order in the xf_template_modification table. Once the changes are made, I would like to recompile the 'account_visitor_menu' template. What code do I need to use in my PHP file? I tried the following but it doesn't work:
Thank you.
PHP:
$template = \XF::app()->find('XF:Template', $templateId);
$template->save();
Thank you.