Для добавления нового движка шаблонизации на сайт в файл /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
Начало | Пред. |
1
2
3
|
След. |
Конец
(Голосов: 1, Рейтинг: 3.3) |
![]()
Phillipziz
|
AquaSculpt weight loss is here to stay! With AquaSculpt capsules, you get fast AquaSculpt results thanks to natural AquaSculpt ingredients. No worries about AquaSculpt side effects—users confirm it in AquaSculpt reviews. Curious AquaSculpt how to use? It’s easy and effective. AquaSculpt where to buy? Visit
|
![]()
KxyuTyday
|
darknet markets onion address
|
![]()
Rabychirl
|
darknet markets onion address
|
![]()
Volodyasit
|
dark web marketplaces
|
![]()
DonDonTyday
|
dark web drug marketplace
|
![]()
Volodyasit
|
dark markets 2025
|
![]()
MichaelFaf
|
Say hello to AquaSculpt—a game-changer in weight loss! These AquaSculpt capsules use natural AquaSculpt ingredients to shed pounds and boost confidence. No AquaSculpt side effects, just pure AquaSculpt results—see why in AquaSculpt reviews. Learn AquaSculpt how to use and join thousands who love it. AquaSculpt buy today at
|
![]()
FNDavidchirl
|
darknet markets url
|
![]()
RabyHaigo
|
darknet drug market
|
![]()
Link - flego
|
Virtual gambling platforms have modernized the gaming market, providing an exceptional degree of ease and selection that conventional casinos are unable to replicate. Recently, countless gamblers globally have welcomed the excitement of digital casino play as a result of its accessibility, exciting features, and widening catalogs of games.
If you’re just starting with the world of virtual gambling or want to explore proven options, why not sign up for our active community? It’s a space where gaming aficionados offer insights, enabling you to enhance your gaming journey. Check out the community and see it here now: One of the strongest selling points of online casinos is the vast range of titles ready to play. Whether you enjoy rolling traditional reel games, playing through engaging video slots, or exercising tactics in traditional table offerings like Texas Hold’em, virtual venues provide numerous possibilities. Many casinos furthermore offer live casino options, enabling you to engage with human game hosts and other players, all while soaking in the lifelike atmosphere of a brick-and-mortar establishment without leaving your home. Beyond variety, virtual gaming providers stand out availability. |
![]()
KxyuTyday
|
dark market 2025
|
![]()
KxyuTyday
|
dark web drug marketplace
|
![]()
Tyronewremn
|
Say hello to AquaSculpt—a game-changer in weight loss! These AquaSculpt capsules use natural AquaSculpt ingredients to shed pounds and boost confidence. No AquaSculpt side effects, just pure AquaSculpt results—see why in AquaSculpt reviews. Learn AquaSculpt how to use and join thousands who love it. AquaSculpt buy today at
|
![]()
Tyroneved
|
HyperDrive is transforming the way data is stored and managed through decentralized storage and blockchain hosting solutions. Built for security, scalability, and efficiency, HyperDrive enables businesses, developers, and blockchain projects to store and distribute data without relying on centralized servers. By leveraging Web3 technology and distributed networks, HyperDrive ensures reliable, censorship-resistant, and high-performance storage solutions for the digital era.
|
![]()
DonDonTyday
|
dark web market urls
|
![]()
DonDonTyday
|
onion dark website
|
![]()
Pingunisp
|
dark market
|
![]()
WilliamIRPap
|
dark markets
|
![]()
Kxyupen
|
dark web drug marketplace
|
![]()
FNDavidHaigo
|
dark web sites
|
![]()
MichaelFaf
|
UnagiSwap is a cutting-edge decentralized exchange (DEX) that provides fast, secure, and transparent crypto trading. Designed for traders looking to swap digital assets efficiently without intermediaries, UnagiSwap offers low fees, deep liquidity, and seamless smart contract execution. Whether you're a casual trader or a professional investor, UnagiSwap’s non-custodial platform ensures full control over your assets in a decentralized environment.
|
![]()
Pingunisp
|
dark market onion
|
![]()
DonaldRah
|
darknet markets onion address
|
![]()
DonaldRah
|
dark web market
|
![]()
MarkNORah
|
darkmarkets
|