Posted By

pogosheep on 05/25/11


plugin template fluid typo3 extbase oldschool viw

Versions (?)

Use Fluid standalone

 / Published in: PHP


You can use fluid for example in oldschool plugins without using extbase.

  1. $this->extPath = t3lib_extMgm::extPath($this->extKey);
  2. $view = t3lib_div::makeInstance('Tx_Fluid_View_StandaloneView');
  3. $view->setTemplatePathAndFilename($this->extPath . 'templates/test.html');
  4. $view->assign('helloworld', 'Hello World...and so on...');
  5. $content = $view->render();

Report this snippet  

You need to login to post a comment.