Zum Inhalt springen

Zugriff von Controller auf locallang.xml

Erstellt am 1. Juli 2011 · 1 Antwort · letzte Antwort am 11. Juli 2011

Tags: Frage

jank ·

Hallo zusammen,
ich möchte vom controller aus einen Text aus der locallang.xml als

$this->flashMessageContainer->add('');

ausgeben.
Ich habe aber nicht rausgefunden wie das vom controller aus geht...

xandio ·

Damit kannst Du Übersetzungen vom Controller aus durchfürhren:

Tx_Extbase_Utility_Localization::translate($key, $this->extensionName)

Viel Grüße,
Xandi