Use Fluid standalone

/ Published in: PHP
Save to your folder(s)

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

Copy this code and paste it in your HTML
  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


RSS Icon Subscribe to comments

You need to login to post a comment.