Answer the question
In order to leave comments, you need to log in
How to connect language constants to header.php?
Does Bitrix provide connection of language files for the template (header.php)? For some reason, constants are not obtained. The file is located at this address:
/templates/mytmpl/lang/en/header.php
Answer the question
In order to leave comments, you need to log in
At the beginning of the header
At the right place
Either on the new core:
<?
use Bitrix\Main\Localization\Loc;
Loc::loadLanguageFile(__FILE__);
?>
echo Loc::getMessage("CONST");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question