Skip to content

Instantly share code, notes, and snippets.

@maykonmeier
Created December 3, 2012 16:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maykonmeier/4196017 to your computer and use it in GitHub Desktop.
Save maykonmeier/4196017 to your computer and use it in GitHub Desktop.
Access another view, setTerminal true set view without layout. You can remove this method.
$htmlViewPart = new ViewModel();
$htmlViewPart->setTerminal(true)
->setTemplate('address/address/edit')
->setVariables(array('form' => $form));
$htmlOutput = $this->getServiceLocator()
->get('viewrenderer')
->render($htmlViewPart);
return $htmlOutput;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment