Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Virtual gambling platforms have changed the betting scene, providing an exceptional degree of accessibility and selection that conventional gambling houses can’t match. Throughout the last ten years, a growing community across the globe have turned to the pleasure of digital casino play because of its availability, engaging traits, and continuously increasing range of offerings.
If you’re exploring for the first time with the world of digital casinos or would like to delve deeper into reputable operators, why not participate in our growing interactive platform? It’s a platform where enthusiasts offer experiences, making it easier for you to enhance your gambling adventure. Check out the connections and see it here now: http://www.lqqm.com/space-uid-10387811.html
One of the key draws of digital gambling sites is the astounding diversity of games provided. Whether you love interacting with vintage fruit machine slots, exploring plot-filled thematic slots, or playing smart in strategy-based games like Roulette, digital casinos deliver endless choices. Plenty of operators also offer live casino options, allowing you to participate with human game hosts and fellow gamblers, all while enjoying the lifelike environment of a brick-and-mortar establishment right at home.
Beyond variety, virtual gaming providers stand out availability.
What Makes Online Casinos Have Become an International Sensation
Digital casinos have revolutionized the betting landscape, providing an exceptional degree of ease and selection that physical establishments struggle to rival. Recently, countless gamblers around the world have turned to the adventure of internet-based gaming due to its anytime, anywhere convenience, thrilling aspects, and progressively larger catalogs of games.
If you’re unfamiliar with the world of virtual casino play or would like to explore reliable sites, why not join our lively community? It’s a place where gaming aficionados exchange stories, guiding you to enhance your online casino experience. Discover the experience and start your journey now: 1xbet partner
One of the most compelling reasons of virtual gambling hubs is the sheer variety of titles at your disposal. Whether you like playing on retro slots, trying out narrative-rich video slots, or testing your strategy in classic casino games like Baccarat, internet-based gambling sites offer numerous entertainment avenues. Many casinos also feature live gaming streams, making it possible for you to engage with real dealers and opponents, all while soaking in the immersive feel of a traditional gambling venue from anywhere you want.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />