Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Why Online Casinos Remain an International Sensation
Virtual gambling platforms have transformed the casino gaming world, providing a unique kind of user-friendliness and selection that conventional venues don’t provide. Over the past decade, a growing community globally have chosen the fun of virtual gambling as a result of its always-open nature, appealing qualities, and constantly growing game libraries.
If you’re just starting with the world of online gaming or would like to learn about proven options, why not become part of our active online hub? It’s a hub where fans share stories, guiding you to enjoy more of your virtual play. Join the discussions and learn more now: https://t.me/gatesofolympusdemo
One of the main appeals of online casinos is the unparalleled selection of titles at your disposal. Whether you love engaging with classic reel games, playing through story-driven video slots, or testing your strategy in table games like Roulette, virtual venues feature numerous opportunities. Several sites also present live gaming streams, allowing you to participate with real dealers and fellow gamblers, all while experiencing the engaging environment of a physical gaming house in your own space.
Internet-based gambling hubs have changed the gaming market, delivering an exceptional degree of accessibility and selection that brick-and-mortar establishments can’t match. Recently, countless gamblers worldwide have turned to the pleasure of digital casino play due to its availability, appealing qualities, and progressively larger range of offerings.
If you’re unfamiliar with the world of virtual casino play or seek to find out more about safe services, why not participate in our lively online hub? It’s a destination where enthusiasts post reviews, guiding you to enhance your virtual play. Explore the experience and learn more now: 5win jogo
One of the key draws of online casinos is the incredible selection of entertainment options on offer. Whether you like spinning old-school slot machines, exploring story-driven modern slot games, or mastering skills in card and board games like Texas Hold’em, internet-based gambling sites deliver countless choices. Many casinos moreover present interactive dealer games, letting you to interact with real dealers and fellow gamblers, all while soaking in the immersive vibes of a physical gaming house in your own space.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />