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

ViewObjects for templates

Discussion in 'XenForo Development Discussions' started by ragtek, May 23, 2011.

  1. ragtek

    ragtek Guest

    Is it possible to use a view object for templates created with $template->create('templatename', $params) ???

    I've checked the code, but i hadn't seen any way for this:(

    I'm adding a template on an template hook via

    $insertTemplate $template->create('ragtek_sidebar_htmlblock'$params)->render();

    $position $options->ragtek_HSBB_position;
    $contents Ragtek_FW_Sidebar::addBlock($contents$insertTemplate$position);
    BUT i want to send
     $insertTemplate $template->create('ragtek_sidebar_htmlblock'$params)->render();
    as first to an view object for some manipulation, because this should get rendered as HTML and json.

Share This Page