Skip to content

Instantly share code, notes, and snippets.

@kitsunet
Created April 26, 2012 06:54
Show Gist options
  • Save kitsunet/2496923 to your computer and use it in GitHub Desktop.
Save kitsunet/2496923 to your computer and use it in GitHub Desktop.
Some stuff
<ul>
<f:for each="{0:1, 1:2, 2:3, 3:4}" as="foo">
<f:cycle values="{0: 'odd', 1: 'even'}" as="zebraClass">
<li class="{zebraClass}">{foo}</li>
</f:cycle>
</f:for>
</ul>
/**
* @var Tx_Fluid_View_StandaloneView $view
*/
$view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
$view->setTemplatePathAndFilename(PATH_typo3conf.'ext/some_extension/templates/someTemplate.html');
$view->setPartialRootPath(PATH_typo3conf.'ext/some_extension/templates/Partials/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment