Для добавления нового движка шаблонизации на сайт в файл /bitrix/php_interface/init.php необходимо добавить следующее:
1. Глобальную переменную $arCustomTemplateEngines, которая содержит ассоциативный массив, каждый элемент которого имеет вид:
"код_шаблонизатора" => array(
"templateExt" => array("расширение1"[, "расширение2"...]),
"function" => "имя_функции_подключения_движка"
)
где:
"код_шаблонизатора" - произвольное уникальное в рамках сайта слово;
"расширениеN" - расширение файла, который должен обрабатываться этим движком шаблонизации;
"имя_функции_подключения_движка" - имя функции, которая будет вызываться, если шаблон компонента имеет указанное расширение.
2. Функцию подключения движков:
function имя_функции_подключения_движка($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template),
где:
$templateFile – путь к файлу шаблона относительно корня сайта,
$arResult – массив результатов работы компонента,
$arParams – массив входных параметров компонента,
$arLangMessages – массив языковых сообщений (переводов) шаблона,
$templateFolder – путь к папке шаблона относительно корня сайта (если шаблон лежит не в
папке, то эта переменная пуста),
$parentTemplateFolder - путь относительно корня сайта к папке шаблона комплексного
компонента, в составе которого подключается данный компонент (если компонент
подключается самостоятельно, то эта переменная пуста),
$template – объект шаблона.
Рассмотрим подключение движков на конкретных примерах.
Страница
1 - 1 из 3
Начало | Пред. |
123
|
След. |
Конец
Ищете где организовать поминальный обед? Зайдите на сайт https://pominkipro.ru/ и ознакомьтесь с нашими кафе для проведения поминок в Казани. У нас большой выбор адресов в разных районах Казани, где можно со своим алкоголем (мы не берем пробковый сбор) или заказать доставку поминального обеда на дом, в офис, на кладбище. Работаем без выходных, приятные цены. Вы будете окружены заботой и вниманием.
As the fame for the Aviator game reaches new heights, its developers are constantly innovating. From incorporating advanced mechanics to hosting community challenges, the Aviator official website keeps the game fresh.
For players seeking the newest features, following updates is essential. As Aviator games grow, their player numbers will surely reach new levels, solidifying the Aviator betting game as a top contender in the gaming industry.
The aviator is a unique blend of strategy and thrill; it’s an adventure that delivers excitement with its innovative mechanics. Whether you’re interested in the best Aviator game, searching for tips on how to play and win, or wanting a new gaming challenge, this online betting game offers universal appeal.
As you dive into the Aviator online game, don’t forget the value of discipline. While the excitement of watching the plane ascend to greater heights is unmatched, careful planning will enhance your experience. The real Aviator game is about finding the perfect moment to cash out, and it offers a moment of satisfaction every time you cash out at the right time.
As the Aviator game expands its reach, it’s clear that this standout title is a staple in the online gaming world. Whether you’re playing for entertainment or profit, the Aviator crash game promises moments of thrill.
So, why wait? Visit the Aviator official website - https://aviators-ar.web.app/, place your bets, and see for yourself what makes this game so captivating.
The Aviator game stands out in the world of digital entertainment due to its unique mechanics and captivating appeal. From its simple interface to its high-stakes moments, it’s evident why the game has captured the hearts of players among casual players.
One of the greatest strengths of the Aviator game is its wide availability. Whether you’re accessing it through the official website, you’ll find that the game is optimized for all devices. This ease of access makes it perfect for players who enjoy gaming on the go.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />