‪TYPO3CMS  9.5
TYPO3\CMS\Fluid\ViewHelpers\BaseViewHelper Class Reference
Inheritance diagram for TYPO3\CMS\Fluid\ViewHelpers\BaseViewHelper:

Static Public Member Functions

static string renderStatic (array $arguments, \Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

bool $escapeOutput = false
 

Detailed Description

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

The Base URI is taken from the current request.

Examples

Example::

<f:base />

Output::

<base href="http://yourdomain.tld/" >

Depending on your domain.

Definition at line 39 of file BaseViewHelper.php.

Member Function Documentation

◆ renderStatic()

static string TYPO3\CMS\Fluid\ViewHelpers\BaseViewHelper::renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Render the "Base" tag by outputting $request->getBaseUri()

Note: renders as <base></base>, because IE6 will else refuse to display the page...

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
‪string "base"-Tag.

Definition at line 60 of file BaseViewHelper.php.

Member Data Documentation

◆ $escapeOutput

bool TYPO3\CMS\Fluid\ViewHelpers\BaseViewHelper::$escapeOutput = false
protected

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

Definition at line 46 of file BaseViewHelper.php.