I have a layout useranswers.volt and i need render it to a string. I searched on google but found nothing :(
Thanks for any help!
BTW, This way not working for me:
$view = clone $this->view; $view->start(); $view->setVar("answers", $answers); $view->setRenderLevel(View::LEVEL_ACTION_VIEW); $view->render('layouts', 'useranswers'); $view->finish(); $content = $view->getContent();