You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just try to code a fluid standalone, but I don't get it to work. The TemplateView seems to expect a RenderingContext, but example transfers a TemplatePath object which is not allowed.
Hi Stefan,
thank you for this report. I'm currently in the last steps of restructuring the whole documentation and fixed the example code in this version.
// Create your view$view = new \TYPO3Fluid\Fluid\View\TemplateView();
// set up paths object with arrays of paths with files$paths = $view->getRenderingContext()->getTemplatePaths();
$paths->setTemplateRootPaths(['/path/to/templates/']);
$paths->setLayoutRootPaths(['/path/to/layouts/']);
$paths->setPartialRootPaths(['/path/to/partials/']);
Hello,
I just try to code a fluid standalone, but I don't get it to work. The
TemplateView
seems to expect a RenderingContext, but example transfers a TemplatePath object which is not allowed.This example should be updated. Thank you:
https://docs.typo3.org/other/typo3fluid/fluid/main/en-us/Usage/Structure.html#the-api
Stefan
The text was updated successfully, but these errors were encountered: