Servus, du solltest deine userFunc Klasse vom ExtbaseAbstractController ableiten.
Oder du nutzt den Extbase ObjectManager. Grüße Udo IPhone Mail Am 04.06.2013 um 12:28 schrieb Hendrik <h.reim...@neonaut.de>: > Hallo, > > in einem Flexform habe ich ein Feld vom Typ "user" mit dem ich gern ein > eigenes Feld in das Flexform packen möchte. Dieses möchte ich aber am > liebsten über ein Fluid Template laden. Aber ich kriege keine Instanz > gebacken von Fluid da meine userFunc kein Controller ist (ich wüsste > auch nicht wie ich das ändern sollte). > > Folgendes habe ich schon probiert: > > protected function getFluidRenderer($file = 'Email/Email.txt') { > // create another instance of Fluid > $renderer = > \TYPO3\CMS\Extbase\Object\ObjectManager::create('\\TYPO3\\CMS\\Fluid\\View\\StandaloneView'); > #$renderer->setFormat("html"); > /*$renderer->setControllerContext($this->controllerContext); > > // find the view-settings and set the template-files > $conf = > $this->configurationManager->getConfiguration(\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface::CONFIGURATION_TYPE_FRAMEWORK); > > $renderer->setTemplatePathAndFilename(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($conf['view']['templateRootPath']) > . $file); > > $renderer->setLayoutRootPath(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($conf['view']['layoutRootPath'])); > > $renderer->setPartialRootPath(\TYPO3\CMS\Core\Utility\GeneralUtility::getFileAbsFileName($conf['view']['partialRootPath'])); > > // and return the new Fluid instance > return $renderer;*/ > } > > Kann mir jemand sagen wie ich in eine Flexform userfunc ein fluid > template laden und rendern kann? > > Danke schonmal > _______________________________________________ > TYPO3-german mailing list > TYPO3-german@lists.typo3.org > http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german _______________________________________________ TYPO3-german mailing list TYPO3-german@lists.typo3.org http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german