DEPRECATION WARNING

This documentation is not using the current rendering mechanism and is probably outdated. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

#Smarty Templating Engine for TYPO3

Basic UsageΒΆ

    $smarty = \RTP\smarty\Factory::get();
    $smarty->addTemplateDir('path/to/my/templates');
    $smarty->addLanguageFile('path/to/my/language/file');
    $smarty->addPluginsDir('path/to/my/plugins');
    $smarty->assign('data', $myData);

    return $smarty->display('myTemplate.tpl');