TemplateView extends AbstractTemplateView

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

Tags
deprecated:

since TYPO3 v13, will be removed in v14. Use ext:core ViewFactoryInterface instead.

Table of Contents

Methods

__construct()  : mixed
getLayoutRootPaths()  : array<string|int, string>
Resolves the layout root to be used inside other paths.
getPartialRootPaths()  : array<string|int, string>
Returns the absolute path to the folder that contains Fluid partial files
getTemplateRootPaths()  : array<string|int, string>
Resolves the template root to be used inside other paths.
setLayoutPathAndFilename()  : mixed
Sets the path and name of the layout file. Overrides the dynamic resolving of the layout file.
setLayoutRootPaths()  : mixed
Set the root path(s) to the layouts.
setPartialRootPaths()  : mixed
Set the root path(s) to the partials.
setTemplate()  : void
setTemplatePathAndFilename()  : mixed
Sets the path and name of of the template file. Effectively overrides the dynamic resolving of a template file.
setTemplateRootPaths()  : mixed
Set the root path(s) to the templates.

Methods

__construct()

public __construct([RenderingContextInterface|null $context = null ]) : mixed
Parameters
$context : RenderingContextInterface|null = null
Internal

getLayoutRootPaths()

Resolves the layout root to be used inside other paths.

public getLayoutRootPaths() : array<string|int, string>
Tags
throws
InvalidTemplateResourceException
Return values
array<string|int, string>

Fluid layout root paths

getPartialRootPaths()

Returns the absolute path to the folder that contains Fluid partial files

public getPartialRootPaths() : array<string|int, string>
Tags
throws
InvalidTemplateResourceException
Return values
array<string|int, string>

Fluid partial root paths

getTemplateRootPaths()

Resolves the template root to be used inside other paths.

public getTemplateRootPaths() : array<string|int, string>
Return values
array<string|int, string>

Path(s) to template root directory

setLayoutPathAndFilename()

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

public setLayoutPathAndFilename(string $layoutPathAndFilename) : mixed
Parameters
$layoutPathAndFilename : string

Path and filename of the layout file

setLayoutRootPaths()

Set the root path(s) to the layouts.

public setLayoutRootPaths(array<string|int, string> $layoutRootPaths) : mixed

If set, overrides the one determined from $this->layoutRootPathPattern

Parameters
$layoutRootPaths : array<string|int, string>

Root path to the layouts. If set, overrides the one determined from $this->layoutRootPathPattern

setPartialRootPaths()

Set the root path(s) to the partials.

public setPartialRootPaths(array<string|int, string> $partialRootPaths) : mixed

If set, overrides the one determined from $this->partialRootPathPattern

Parameters
$partialRootPaths : array<string|int, string>

Root paths to the partials. If set, overrides the one determined from $this->partialRootPathPattern

setTemplate()

public setTemplate(string $templateName) : void
Parameters
$templateName : string
Internal

setTemplatePathAndFilename()

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

public setTemplatePathAndFilename(string $templatePathAndFilename) : mixed
Parameters
$templatePathAndFilename : string

Template file path

setTemplateRootPaths()

Set the root path(s) to the templates.

public setTemplateRootPaths(array<string|int, string> $templateRootPaths) : mixed

If set, overrides the one determined from $this->templateRootPathPattern

Parameters
$templateRootPaths : array<string|int, string>

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


        
On this page

Search results