1. 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?

Discussion in 'XenForo Development Discussions' started by tyteen4a03, May 11, 2013.

  1. tyteen4a03

    tyteen4a03 Well-Known Member

    I wonder if it is possible to reuse XenForo_Template_Abstract classes? Like this:

    $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();

Share This Page