TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
TemplateView Class Reference
Inheritance diagram for TemplateView:
TemplateViewFixture AbstractTemplateView StandaloneView FormView

Public Member Functions

 initializeView ()
 
 setTemplate ($templateName)
 
 setTemplatePathAndFilename ($templatePathAndFilename)
 
 setLayoutPathAndFilename ($layoutPathAndFilename)
 
 getTemplateRootPaths ()
 
 setTemplateRootPaths (array $templateRootPaths)
 
 setPartialRootPaths (array $partialRootPaths)
 
 setLayoutRootPaths (array $layoutRootPaths)
 
 canRender (ControllerContext $controllerContext)
 

Detailed Description

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

Definition at line 26 of file TemplateView.php.

Member Function Documentation

canRender ( ControllerContext  $controllerContext)

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

Parameters
ControllerContext$controllerContextController context which is available inside the view
Returns
bool

Definition at line 124 of file TemplateView.php.

References ControllerContext\getRequest().

getTemplateRootPaths ( )

Resolves the template root to be used inside other paths.

Returns
array Path(s) to template root directory

Definition at line 73 of file TemplateView.php.

initializeView ( )

Init view

Definition at line 31 of file TemplateView.php.

setLayoutPathAndFilename (   $layoutPathAndFilename)

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

Parameters
string$layoutPathAndFilenamePath and filename of the layout file
Returns
void

Definition at line 63 of file TemplateView.php.

setLayoutRootPaths ( array  $layoutRootPaths)

Set the root path(s) to the layouts. If set, overrides the one determined from $this->layoutRootPathPattern

Parameters
array$layoutRootPathsRoot path to the layouts. If set, overrides the one determined from $this->layoutRootPathPattern
Returns
void

Definition at line 112 of file TemplateView.php.

setPartialRootPaths ( array  $partialRootPaths)

Set the root path(s) to the partials. If set, overrides the one determined from $this->partialRootPathPattern

Parameters
array$partialRootPathsRoot paths to the partials. If set, overrides the one determined from $this->partialRootPathPattern
Returns
void

Definition at line 99 of file TemplateView.php.

setTemplate (   $templateName)
Parameters
$templateName

Definition at line 38 of file TemplateView.php.

setTemplatePathAndFilename (   $templatePathAndFilename)

Sets the path and name of of the template file. Effectively overrides the dynamic resolving of a template file.

Parameters
string$templatePathAndFilenameTemplate file path
Returns
void

Definition at line 51 of file TemplateView.php.

setTemplateRootPaths ( array  $templateRootPaths)

Set the root path(s) to the templates. If set, overrides the one determined from $this->templateRootPathPattern

Parameters
array$templateRootPathsRoot path(s) to the templates. If set, overrides the one determined from $this->templateRootPathPattern
Returns
void

Definition at line 86 of file TemplateView.php.