---
title: "Frontend controller"
manual: "TYPO3 Explained"
version: "13.4"
permalink: "https://docs.typo3.org/permalink/t3coreapi:typo3-request-attribute-frontend-controller@13.4"
source: "ApiOverview/RequestLifeCycle/RequestAttributes/FrontendController.rst"
rendered: "2026-10-05T17:28:20+00:00"
---

# Frontend controller {#typo3-request-attribute-frontend-controller}

<!-- TODO: no Markdown rendering for "deprecated" -->

The class \TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController
and its global instance $GLOBALS['TSFE'] 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.controller` frontend request attribute provides access to the
`\TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController` object.

Example:

```php
$frontendController = $request->getAttribute('frontend.controller');
$rootline = $frontendController->rootLine;  // Mind the capital "L"
```

> [!WARNING]
> **Attention**
>
> In former TYPO3 versions you have to retrieve the
> `TypoScriptFrontendController` via the global variable
> `$GLOBALS['TSFE']`. This should be avoided now, instead use the request
> attribute.
