Frontend controller
Deprecated since version 13.4
The class \TYPO3\
and its global instance $GLOBALS
have been marked as
deprecated. The class will be removed with TYPO3 v14.
Use the frontend.page.information request attribute for page-related properties.
The frontend.
frontend request attribute provides access to the
\TYPO3\
object.
Example:
$frontendController = $request->getAttribute('frontend.controller');
$rootline = $frontendController->rootLine; // Mind the capital "L"
Copied!
Attention
In former TYPO3 versions you have to retrieve the
Typo
via the global variable
$GLOBALS
. This should be avoided now, instead use the request
attribute.