‪TYPO3CMS  9.5
TYPO3\CMS\Fluid\View\TemplateView Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\View\TemplateView:
TYPO3\CMS\Fluid\View\AbstractTemplateView TYPO3\CMS\Extbase\Mvc\View\ViewInterface

Public Member Functions

 setLayoutPathAndFilename ($layoutPathAndFilename)
 
bool canRender (ControllerContext $controllerContext)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Fluid\View\AbstractTemplateView
 initializeView ()
 
 __construct (RenderingContextInterface $context=null)
 
bool canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
 setTemplate ($templateName)
 
 setTemplatePathAndFilename ($templatePathAndFilename)
 
 setTemplateRootPaths (array $templateRootPaths)
 
string[] getTemplateRootPaths ()
 
 setPartialRootPaths (array $partialRootPaths)
 
string[] getPartialRootPaths ()
 
string[] getLayoutRootPaths ()
 
 setLayoutRootPaths (array $layoutRootPaths)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Mvc\View\ViewInterface
 setControllerContext (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
TYPO3 CMS Extbase Mvc View ViewInterface assign ($key, $value)
 
TYPO3 CMS Extbase Mvc View ViewInterface assignMultiple (array $values)
 
bool canRender (\TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext $controllerContext)
 
string render ()
 

Additional Inherited Members

- ‪Protected Attributes inherited from ‪TYPO3\CMS\Fluid\View\AbstractTemplateView
TYPO3 CMS Extbase Mvc Controller ControllerContext $controllerContext
 

Detailed Description

The main template view. Should be used as view if you want Fluid Templating

Definition at line 23 of file TemplateView.php.

Member Function Documentation

◆ canRender()

bool TYPO3\CMS\Fluid\View\TemplateView::canRender ( ControllerContext  $controllerContext)

Checks whether a template can be resolved for the current request context.

Parameters
ControllerContext$controllerContext‪Controller context which is available inside the view
Returns
‪bool

Definition at line 41 of file TemplateView.php.

References TYPO3\CMS\Fluid\View\AbstractTemplateView\$controllerContext, TYPO3\CMS\Extbase\Mvc\Controller\ControllerContext\getRequest(), and TYPO3\CMS\Fluid\View\AbstractTemplateView\setControllerContext().

◆ setLayoutPathAndFilename()

TYPO3\CMS\Fluid\View\TemplateView::setLayoutPathAndFilename (   $layoutPathAndFilename)

Sets the path and name of the layout file. Overrides the dynamic resolving of the layout file.

Parameters
string$layoutPathAndFilename‪Path and filename of the layout file

Definition at line 30 of file TemplateView.php.