Skip to content

Instantly share code, notes, and snippets.

@fedir
Created July 15, 2013 16:08
Show Gist options
  • Select an option

  • Save fedir/6001195 to your computer and use it in GitHub Desktop.

Select an option

Save fedir/6001195 to your computer and use it in GitHub Desktop.
Standalone views with Fluid with TYPO3 4.5.x LTS // via http://developpeurtypo3.wordpress.com/2011/03/03/fluid-sans-extbase/ * useful for hooks also, when we are working with non-extbase extensions
<?php
$template = t3lib_extMgm::extPath($this->extKey) . $this->conf['template'];
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
$view->setTemplatePathAndFilename($template);
$view->assign('data', $this->data);
$view->render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment