Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Digital casinos have transformed the casino gaming landscape, providing an unmatched level of user-friendliness and diversity that physical establishments struggle to rival. Throughout the last ten years, a vast number of enthusiasts globally have embraced the thrill of digital casino play as a result of its availability, exciting features, and constantly growing game libraries.
If you’re new with the world of internet-based gaming or would like to discover reliable sites, why not engage with our vibrant community? It’s a place where enthusiasts exchange stories, assisting you to maximize your online casino experience. Check out the experience and visit us now: 5 win plataforma
One of the biggest attractions of virtual gambling hubs is the astounding variety of games provided. Whether you like interacting with vintage slots, immersing yourself in theme-based video slots, or exercising tactics in traditional table offerings like Blackjack, virtual venues offer countless choices. Several sites also offer live dealer games, letting you to participate with live hosts and other players, all while taking in the lifelike feel of a brick-and-mortar establishment from the comfort of your home.
Virtual gambling platforms have transformed the gaming industry, offering a level of user-friendliness and variety that physical establishments struggle to rival. Recently, a vast number of enthusiasts across the globe have welcomed the fun of internet-based gaming in light of its ease of access, exciting features, and ever-expanding collections of titles.
If you’re new with the world of virtual gambling or would like to explore reputable operators, why not become part of our growing online hub? It’s a place where gamblers offer stories, making it easier for you to enhance your gaming journey. Join the experience and learn more now: http://xn--hy1b215auvkxta.com/bbs/board.php?bo_table=hansam&wr_id=956375
One of the key draws of internet-based platforms is the astounding range of games at your disposal. Whether you like interacting with traditional fruit machine slots, immersing yourself in plot-filled video slots, or exercising tactics in card and board games like Roulette, virtual venues feature numerous options. Numerous services also present live casino options, allowing you to communicate with actual dealers and opponents, all while enjoying the engaging environment of a physical gaming house without leaving your home.
Adding to the extensive catalog, online casinos are known for ease of access.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />