Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
As the popularity for the Aviator game continues to rise, its creators are constantly innovating. From improving the gameplay to launching exclusive events, the Aviator official website keeps the game fresh.
For players interested in the latest updates, keeping an eye on the site is a good idea. As Aviator games grow, their community will undoubtedly reach new levels, solidifying the Aviator betting game as one of the most exciting options in the digital betting industry.
The aviator game is not just a game of chance; it’s a journey that captures attention with its simple yet addictive gameplay. Whether you’re interested in the best Aviator game, learning about strategies for success, or simply seeking entertainment, this casino hit has something for everyone.
As you explore the Aviator online game, keep in mind the importance of strategy. While the thrills of watching the plane climb the skies is irresistible, a measured approach will boost your enjoyment. The real Aviator game is about making quick decisions, and it provides a feeling of triumph every time you win a round.
As the Aviator game captures more players worldwide, it’s clear that this standout title is here to stay. Whether you’re playing for leisure or serious rewards, the Aviator crash game promises moments of thrill.
So, ready to take off? Visit the Aviator official website - https://aviator-india.pages.dev/, place your bets, and join the community of Aviator winners today.
The Aviator game stands out in the world of digital entertainment due to its one-of-a-kind gameplay and captivating appeal. From its simple interface to its adrenaline-pumping rounds, it’s obvious why the game has gained a global following among casual players.
One of the key draws of the Aviator game is its wide availability. Whether you’re downloading it for offline play, you’ll find that the game is optimized for all devices. This ease of access makes it suitable for players who value flexibility.
Internet-based gambling hubs have changed the betting world, offering an unmatched level of convenience and selection that land-based establishments can’t match. In recent years, a vast number of enthusiasts globally have welcomed the adventure of internet-based gaming because of its anytime, anywhere convenience, exciting features, and ever-expanding game libraries.
If you’re exploring for the first time with the world of digital casinos or seek to learn about reliable sites, why not engage with our growing online hub? It’s a space where gamblers offer insights, assisting you to get the most out of your virtual play. Join the connections and check it out now: http://shinhwaspodium.com/bbs/board.php?bo_table=free&wr_id=3182048
One of the strongest selling points of internet-based platforms is the vast array of games available. Whether you are a fan of rolling retro slots, immersing yourself in plot-filled video-based games, or exercising tactics in traditional table offerings like Roulette, digital casinos offer limitless opportunities. Numerous services additionally include live casino options, giving you the chance you to interact with real dealers and other players, all while taking in the realistic environment of a traditional gambling venue from the comfort of your home.
Beyond variety, virtual gaming providers stand out ease of access.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />