‪TYPO3CMS  ‪main
TYPO3\CMS\Fluid\View\StandaloneView Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\View\StandaloneView:

Public Member Functions

 setFormat (string $format)
 setRequest (?ServerRequestInterface $request=null)
 setTemplateSource (string $templateSource)
 hasTemplate ()
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Fluid\View\AbstractTemplateView
 __construct (?RenderingContextInterface $context=null)
 setTemplate (string $templateName)
 setTemplatePathAndFilename ($templatePathAndFilename)
 setTemplateRootPaths (array $templateRootPaths)
string[] getTemplateRootPaths ()
 setPartialRootPaths (array $partialRootPaths)
string[] getPartialRootPaths ()
string[] getLayoutRootPaths ()
 setLayoutRootPaths (array $layoutRootPaths)

Detailed Description

A standalone template view. Should be used as view if you want to use Fluid without Extbase extensions

Definition at line 29 of file StandaloneView.php.

Member Function Documentation

◆ hasTemplate()

TYPO3\CMS\Fluid\View\StandaloneView::hasTemplate ( )

Checks whether a template can be resolved for the current request

Definition at line 71 of file StandaloneView.php.

◆ setFormat()

TYPO3\CMS\Fluid\View\StandaloneView::setFormat ( string  $format)

Sets the format of the current request (default format is "html")


Definition at line 36 of file StandaloneView.php.

◆ setRequest()

TYPO3\CMS\Fluid\View\StandaloneView::setRequest ( ?ServerRequestInterface  $request = null)

Definition at line 52 of file StandaloneView.php.

◆ setTemplateSource()

TYPO3\CMS\Fluid\View\StandaloneView::setTemplateSource ( string  $templateSource)

Sets a Fluid template source string directly. You can use setTemplatePathAndFilename() alternatively if you only want to specify the template path

Definition at line 63 of file StandaloneView.php.