If gettext() concept of scope?

Hi all.

Imagine there's a controller class method.
In the controller I have a translation dictionary in your class.
But, in fact function textdomain() to globally change the dictionary, and calling the controller method of a class further through the code in the controller will use the dictionary class instead of the controller.

How do you solve such problems?
July 9th 19 at 13:51
1 answer
July 9th 19 at 13:53
To make a function that wraps with extra parameter domain.

Find more questions by tags PHP