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

ViewObjects for templates

R

ragtek

Guest
#1
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

PHP:
$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
PHP:
 $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.