[Typo3-dev] getting values from locallang_db.php for frontend output
JoH
info at cybercraft.de
Tue Jun 21 16:14:13 CEST 2005
>> The question is: What is the preferrable way to insert labels from
>> locallang_db.php into the output of the FE-plugin(s)?
>
> t3lib_div has something for everyone:
>
> t3lib_div::readLLfile($fileRef,$langKey) seems to be the right way.
>
unfortunately this seems to be part of $lang for the backend but it is not
available via t3lib_div::readLLfile
(Or has this changed from 3.7 to 3.8? - We are using 3.7 with this project)
Using the function in the PHP code of the plugin gives us the following
error message:
Call to undefined function: readllfile() ... blah
Searching the different sections of extdeveval I found out that there is
something like "function readLLfile($fileRef)" in sysext/lang/lang.php but
as far as I understood this can't be used inside FE-plugins.
Any other ideas?
Joey
--
Wenn man keine Ahnung hat: Einfach mal Fresse halten!
(If you have no clues: simply shut your knob sometimes!)
Dieter Nuhr, German comedian
openBC: http://www.openbc.com/go/invuid/Jo_Hasenau
More information about the TYPO3-dev
mailing list