Hi,
to load translation-files and create some dynamic content, i add the language service to the _construct of my own library.
Now i want to load a language file by calling my lib inside a view-file in this way
The result is the error message: "Call to protected method CodeIgniter\Language\Language::load() from scope CodeIgniter\View\View"
What i do wrong - how i cann load a language file on each point i want?
to load translation-files and create some dynamic content, i add the language service to the _construct of my own library.
Code:
"function __construct(){ ... $this->lang = service('language');" ... }"Now i want to load a language file by calling my lib inside a view-file in this way
Code:
"$ci->mytools->lang->load(filepath', $ci->mytools->request->getLocale(),true)"The result is the error message: "Call to protected method CodeIgniter\Language\Language::load() from scope CodeIgniter\View\View"
What i do wrong - how i cann load a language file on each point i want?