Frontend controller
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.