Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
MachFi is at the forefront of decentralized finance on the Sonic Chain, providing an advanced borrow-lending platform. Our platform supports custom trading strategies, helping you unlock the full potential of your digital assets in a decentralized environment. visit to https://machfi.net/
Key Features of MachFi:
- Sonic Chain: Fast, secure, and reliable blockchain for DeFi transactions. - Customizable Lending: Choose strategies that work best for you. - Higher Returns: Capitalize on innovative DeFi solutions for superior returns.
Join MachFi now and redefine your digital financial strategy!
With MachFi, DeFi on the Sonic Chain reaches new heights. Our unique borrow-lending platform allows users to create custom trading strategies that suit their needs and optimize performance. visit to https://machfi.net/
Why MachFi?
- Security: Built on the Sonic Chain’s robust blockchain technology. - Flexibility: Custom strategies for lending and borrowing. - Efficiency: Fast, reliable transactions with lower fees.
Experience the next generation of DeFi with MachFi.
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!
Why DataDex is Leading Blockchain Data Analytics In a world where data drives decision-making, DataDex stands out with its innovative decentralized platform. With a focus on security, scalability, and real-time insights, DataDex offers unparalleled solutions for modern data challenges. https://datadex.my/
Why DataDex?
Security First: Powered by blockchain for complete trust and transparency. Innovative Tools: Cutting-edge analytics to unlock your data’s potential. Scalability at Its Core: Built to adapt to your business needs. Transform your approach to data with DataDex today! https://datadex.my/
Revolutionize Your Data Strategy with DataDex DataDex is transforming how businesses manage and analyze their data. Our decentralized platform combines blockchain security with advanced analytics tools for unparalleled performance. https://datadex.my/
Key Features of DataDex:
Blockchain-Based Security: Your data, tamper-proof and transparent. Advanced Analytics: Tools to drive smarter decisions. Global Scalability: Solutions designed for growth and flexibility. Join DataDex and take control of your data like never before! https://datadex.my/
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />