Arek van Schaijk
Arek van Schaijk

Reputation: 1442

TYPO3 Extbase: access $BE_USER

How can I access the $BE_USER variable inside my Extbase controller on the front-end? I just want to know the back-end user ID which is logged in.

http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/3/6/

Upvotes: 0

Views: 2082

Answers (1)

pgampe
pgampe

Reputation: 4578

$GLOBALS['BE_USER'] ... you are still in the normal TYPO3 backend context and you can access any global variable. Just make sure that you only read that array/object of you are really in backend mode.

Upvotes: 3

Related Questions