Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
How Online Casinos Have Become a Global Phenomenon
Internet-based gambling hubs have transformed the gambling landscape, delivering an exceptional degree of ease and range that brick-and-mortar gambling houses don’t provide. Over the past decade, a vast number of enthusiasts around the world have embraced the thrill of digital casino play in light of its anytime, anywhere convenience, thrilling aspects, and continuously increasing game libraries.
If you’re exploring for the first time with the world of digital casinos or want to delve deeper into reliable sites, why not join our vibrant gaming forum? It’s a space where players share stories, assisting you to enhance your virtual play. Discover the conversation and visit us now: how to play fortune gems
One of the most compelling reasons of internet-based platforms is the vast range of gaming experiences available. Whether you love interacting with old-school slots, immersing yourself in narrative-rich modern slot games, or strategizing in classic casino games like Blackjack, virtual venues deliver endless opportunities. A large number of platforms additionally introduce live casino options, allowing you to interact with live hosts and gaming peers, all while taking in the engaging environment of a real casino from the comfort of your home.
Internet-based gambling hubs have reshaped the casino gaming landscape, delivering a unique kind of ease and breadth that physical venues can’t match. Over time, a vast number of enthusiasts worldwide have chosen the fun of internet-based gaming because of its always-open nature, captivating elements, and widening range of offerings.
If you’re new with the world of online gaming or seek to find out more about trusted platforms, why not sign up for our vibrant online hub? It’s a place where fans post tips, assisting you to get the most out of your gaming journey. Dive into the experience and see it here now:
One of the key draws of internet-based platforms is the vast variety of games ready to play. Whether you love spinning traditional fruit machine slots, immersing yourself in plot-filled video-based games, or playing smart in traditional table offerings like Blackjack, casino websites feature infinite choices. Numerous services moreover present live dealer games, enabling you to communicate with live hosts and co-players, all while taking in the immersive feel of a traditional gambling venue without leaving your home.
Besides the wide selection, online casinos shine constant connectivity.
As the popularity for the Aviator game continues to rise, its creators are constantly innovating. From incorporating advanced mechanics to hosting community challenges, the Aviator official website keeps the game fresh.
For players interested in the newest features, keeping an eye on the site is essential. As Aviator games expand, their player numbers will likely increase further, solidifying the Aviator betting game as a top contender in the digital betting industry.
The aviator game is more than just a betting experience; it’s a journey that captures attention with its simple yet addictive gameplay. Whether you’re looking to explore the best Aviator game, searching for tips on how to play and win, or wanting a new gaming challenge, this online betting game caters to all tastes.
As you immerse yourself in the Aviator online game, don’t forget the value of discipline. While the excitement of watching the plane soar higher is unmatched, careful planning will enhance your experience. The real Aviator game is about balancing risk and reward, and it provides a sense of accomplishment every time you win a round.
As the Aviator game captures more players worldwide, it’s clear that this innovative creation is here to stay. Whether you’re playing for fun or profit, the Aviator crash game delivers hours of excitement.
So, what are you waiting for? Visit the Aviator official website - https://aviator-gh.netlify.app/, start your adventure, 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 thrilling unpredictability. From its straightforward setup to its adrenaline-pumping rounds, it’s obvious why the game has become a fan favorite among gaming enthusiasts.
One of the most appealing aspects of the Aviator game is its accessibility. Whether you’re accessing it through the official website, you’ll find that the game is available across multiple platforms. This ease of access makes it perfect for players who prefer convenience in their entertainment.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />