• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Reusing XenForo_Template_Abstract classes?

tyteen4a03

Well-known member
#1
I wonder if it is possible to reuse XenForo_Template_Abstract classes? Like this:

Code:
$myTemplate = $template->create("template1", $template->getParams()); // $template is a XenForo_Template_Abstract
$myTemplate->setParam("things", "cool!");
$output .= $myTemplate->render();
$myTemplate->setParam("things", "not really");
$output .= $myTemplate->render();