TYPO3 extBase labels in the controller
1 answer
Yes, for a label in extbase you can use
$ GLOBALS ['LANG'] → Sl ('LLL: EXT: Arzte / Resources / Individuals / Language / locallang.xlf: tx_extension_name');
but somehow it doesn't work at all.
I found a solution that might help you:
\ TYPO3 \ CMS \ Extbase \ Utility \ LocalizationUtility :: translate ('your_label_key', 'your_extensionName');
It works great for me, try it :)
+6
source to share