I’m adding some error and debug logs to my module, and I want to store my error and debug messages in the language file to keep things clean.
I tried to use the following like I’ve used in the mcp.[module].php file, but the value seems to be empty.
global $LANG;
echo $LANG['my_message'];Is the language file not loaded at that point? Is there a way to load it when I need it?
Thanks!
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.