/** * Renders a section from the specified template w/o requring a call to the * main render() method - allows for cherry-picking sections to render. * * @param string $sectionName * @param array $variables * @param boolean $optional * @return string */ public function renderStandaloneSection($sectionName, $variables, $optional = TRUE) { $content = NULL; $this->baseRenderingContext->setControllerContext($this->controllerContext); $this->startRendering(AbstractTemplateView::RENDERING_TEMPLATE, $this->getParsedTemplate(), $this->baseRenderingContext); $content = parent::renderSection($sectionName, $variables, $optional); $this->stopRendering(); return $content; }