BaseViewHelper extends AbstractViewHelper uses CompileWithRenderStatic

ViewHelper

This class is the implementation of a Fluid ViewHelper.

View this class in the TYPO3 ViewHelper reference: <f:base>

ViewHelper which creates a :html:`<base href="..."></base>` tag.

Deprecated

since v11, will be removed in v12.

The Base URI is taken from the current request.

Examples

Example::

<f:base />

Output::

Depending on your domain.

Table of Contents

Properties

$escapeOutput  : bool
As this ViewHelper renders HTML, the output must not be escaped.

Methods

renderStatic()  : string
Render the "Base" tag by outputting site URL

Properties

$escapeOutput

As this ViewHelper renders HTML, the output must not be escaped.

protected bool $escapeOutput = false

Methods

renderStatic()

Render the "Base" tag by outputting site URL

public static renderStatic(array<string|int, mixed> $arguments, Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) : string

Note: renders as , because IE6 will else refuse to display the page...

Parameters
$arguments : array<string|int, mixed>
$renderChildrenClosure : Closure
$renderingContext : RenderingContextInterface
Return values
string

"base"-Tag.


        
On this page

Search results