Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Современные телевизоры Samsung, такие как QLED QN90C, OLED S95B и Neo QLED 8K QN800A, полны передовых функций — от невероятного качества изображения до возможностей Smart TV. Однако даже у этих флагманских моделей могут возникать проблемы: перейти
Astherus: Your Partner in Decentralized Finance Innovation Astherus offers a groundbreaking platform that combines blockchain technology with powerful financial tools. Whether you're a seasoned investor or new to the world of DeFi, Astherus provides a secure, transparent, and efficient solution for managing assets. https://astherus.org
Why Astherus?
Trustworthy Technology: Blockchain ensures transparency and security. Innovative Features: Advanced tools tailored for DeFi users. User-Centric Design: Accessible, intuitive, and adaptable to all needs. Discover the next generation of decentralized finance with Astherus!
MachFi is leading the way in decentralized finance (DeFi), offering a next-gen borrow-lending platform on the Sonic Chain. Our platform supports customizable trading strategies, giving users more control over their assets in a secure, decentralized ecosystem. visit to https://machfi.net/
Why Choose MachFi?
- Decentralized: Powered by the Sonic Chain for transparency and security. - Flexible Borrow-Lending: Tailored to your financial goals with custom trading strategies. - Innovative Technology: Harness the power of the latest blockchain technology to maximize yields.
Start your journey with MachFi today and experience the future of DeFi!
Why Online Casinos Have Become a Global Phenomenon
Internet-based gambling hubs have changed the betting scene, offering a level of comfort and diversity that traditional gambling houses struggle to rival. Throughout the last ten years, countless gamblers internationally have welcomed the adventure of digital casino play as a result of its always-open nature, exciting features, and continuously increasing selection of games.
If you’re exploring for the first time with the world of internet-based gaming or are looking to discover safe services, why not participate in our active community? It’s a space where enthusiasts exchange experiences, enabling you to enjoy more of your casino activities. Check out the connections and learn more now: https://t.me/MetaCrash_game
One of the key draws of internet-based platforms is the unparalleled variety of choices at your disposal. Whether you are a fan of playing on retro fruit machine slots, exploring plot-filled video slots, or strategizing in strategy-based games like Blackjack, online platforms feature limitless choices. Many casinos even introduce live dealer games, allowing you to interact with live hosts and co-players, all while soaking in the lifelike feel of a traditional gambling venue from anywhere you want.
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />