Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Internet-based gambling hubs have modernized the gaming market, delivering a unique kind of comfort and range that traditional venues are unable to replicate. Throughout the last ten years, a growing community worldwide have chosen the adventure of virtual casinos as a result of its availability, appealing qualities, and progressively larger selection of games.
If you’re exploring for the first time with the world of virtual gambling or seek to discover reputable operators, why not engage with our lively interactive platform? It’s a platform where gaming aficionados post reviews, assisting you to enjoy more of your casino activities. Check out the discussions and check it out now: aviator game apk
One of the most compelling reasons of digital gambling sites is the incredible selection of games on offer. Whether you enjoy spinning old-school reel games, trying out theme-based video slots, or testing your strategy in card and board games like Roulette, virtual venues feature numerous options. Numerous services additionally present interactive dealer games, giving you the chance you to connect with professional croupiers and fellow gamblers, all while taking in the authentic feel of a land-based casino right at home.
How Online Casinos Remain an International Sensation
Digital casinos have transformed the gaming market, delivering a unique kind of ease and diversity that physical establishments struggle to rival. In recent years, countless gamblers worldwide have turned to the excitement of internet-based gaming because of its ease of access, engaging traits, and constantly growing catalogs of games.
If you’re just starting with the world of digital casinos or hope to discover safe services, why not join our dynamic interactive platform? It’s a platform where players offer tips, guiding you to maximize your casino activities. Check out the connections and visit us now: https://t.me/sugarrush_1000
One of the biggest attractions of online casinos is the astounding range of gaming experiences ready to play. Whether you are a fan of spinning retro one-armed bandits, playing through plot-filled modern slot games, or exercising tactics in card and board games like Roulette, digital casinos deliver numerous options. Plenty of operators also offer real-time gaming experiences, allowing you to connect with live hosts and other players, all while enjoying the immersive feel of a brick-and-mortar establishment right at home.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />