/**
  * Overrides the standard resolveView method
  *
  * @return ViewInterface $view The view
  */
 protected function resolveView()
 {
     $view = new TemplateView();
     $view->setControllerContext($this->controllerContext);
     $view->setTemplatePathAndFilename(FLOW_PATH_FLOW . 'Resources/Private/Mvc/StandardView_Template.html');
     return $view;
 }
예제 #2
0
 /**
  * Renders a template.
  *
  * @param string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance
  * @param array $parameters An array of parameters to pass to the template
  *
  * @return string The evaluated template as a string
  *
  * @throws \RuntimeException if the template cannot be rendered
  *
  * @api
  */
 public function render($name, array $parameters = array())
 {
     $this->fluid->setTemplatePathAndFilename($this->load($name));
     $this->fluid->assignMultiple($parameters);
     return $this->fluid->render();
 }