January 17, 2019 in Developer Connection
I'm trying to load a language string using
But I get an OutOfRangeException::0 error.
I've also tried passing the idField like so:
But there I get a InvalidArgumentException (0) error.
Any idea what I'm doing wrong?
\IPS\Lang::load() is meant to load an entire language pack. If you want to load an individual string, you need to do:
\IPS\Member::loggedIn()->language()->addToStack( 'my_key' );
This topic is now archived and is closed to further replies.
Started Thursday at 01:08 PM
Started 1 hour ago