Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Привет всем! Зарубежные сериалы бесплатно онлайн смотреть на всех устройствах. Подключайтесь и смотрите прямо сейчас. зарубежный сериал смотреть У нас можно найти все новинки. Смотрите любимые сериалы без подписки. Не ограничивайтесь выбором и наслаждайтесь качеством! Зарубежные сериалы онлайн бесплатно смотреть в хорошем качестве. Мы обеспечиваем вам доступ к лучшему контенту. Все новинки загружаются сразу. Смотрите любимые сериалы без рекламы и скрытых платежей. Приятного просмотра! Заходите и смотрите боевики онлайн - https://lordseriala.biz/detektiv/ детективы смотреть онлайн лучшие сериалы, смотреть сериалы россия бесплатно в хорошем качестве, смотреть сериал новые бесплатно сериал счастье смотреть онлайн бесплатно, смотреть сериал 5 в хорошем качестве, смотреть сериал склифосовского Удачного просмотра!
Online casinos have transformed the gaming market, offering a level of accessibility and range that brick-and-mortar venues don’t provide. Over time, millions of players across the globe have adopted the pleasure of digital casino play due to its accessibility, engaging traits, and constantly growing collections of titles.
If you’re just starting with the world of online gaming or want to explore trusted platforms, why not participate in our dynamic social network? It’s a hub where gaming aficionados post reviews, assisting you to get the most out of your gambling adventure. Explore the discussions and start your journey now: 1win bet login
One of the main appeals of online gaming options is the incredible range of gaming experiences available. Whether you love engaging with old-school fruit machine slots, diving into narrative-rich video-based games, or mastering skills in table games like Blackjack, virtual venues offer countless options. Numerous services moreover offer live gaming streams, making it possible for you to engage with real dealers and fellow gamblers, all while soaking in the realistic environment of a real casino in your own space.
As the demand for the Aviator game continues to rise, its designers are introducing new features. From adding new bonus rounds to creating limited-time promotions, the Aviator official website maintains player interest.
For players looking for the latest updates, following updates is essential. As Aviator games evolve, their player numbers will undoubtedly reach new levels, solidifying the Aviator betting game as a leader in the digital betting industry.
The aviator predictor is not just a game of chance; it’s a journey that delivers excitement with its thrilling unpredictability. Whether you’re looking to explore the best Aviator game, discovering its bonus features, or simply seeking entertainment, this online betting game offers universal appeal.
As you dive into the Aviator online game, keep in mind the value of discipline. While the excitement of watching the plane ascend to greater heights is irresistible, smart gameplay will boost your enjoyment. The real Aviator game is about making quick decisions, and it offers a sense of accomplishment every time you play successfully.
As the Aviator game captures more players worldwide, it’s clear that this innovative creation is a lasting phenomenon. Whether you’re playing for fun or serious rewards, the Aviator crash game promises an unforgettable experience.
So, what are you waiting for? Visit the Aviator official website - https://aviators-ar.web.app/, experience the thrill for yourself, and discover why this game is beloved worldwide.
The Aviator game stands out in the world of casino betting due to its unique mechanics and unmatched excitement. From its straightforward setup to its high-stakes moments, it’s clear why the game has become a fan favorite among gaming enthusiasts.
One of the greatest strengths of the Aviator game is its wide availability. Whether you’re exploring the Aviator game online, 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.
Hello, creative community! <a href="https://themasterairbrush.com/>https://themasterairbrush.com/</a> provides comprehensive kits ideal for both beginners and professionals. Each kit includes a precision airbrush, a reliable compressor, and essential accessories, making it easy to start airbrushing. Perfect for various applications like art, modeling, and cake decorating.
Virtual gambling platforms have changed the casino gaming scene, delivering an exceptional degree of convenience and diversity that physical venues fall short of. In recent years, a large audience internationally have adopted the adventure of online gaming because of its availability, captivating elements, and ever-expanding game libraries.
One of the most compelling reasons of online casinos is the sheer range of games ready to play. Whether you prefer engaging with classic slots, trying out theme-based modern slot games, or strategizing in strategy-based games like Roulette, casino websites boast limitless options. Plenty of operators also present real-time gaming experiences, making it possible for you to participate with professional croupiers and other players, all while immersing yourself in the realistic vibes of a traditional gambling venue from the comfort of your home.
Beyond variety, internet-based gambling hubs stand out ease of access.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />