Для добавления нового движка шаблонизации на сайт в файл /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) |
![]()
FNDavidHaigo
|
darknet sites
|
![]()
online casino lsmuri
|
You said it very well.!
10 bonus play video poker online casino strategy |
![]()
PingPap
|
dark market onion
|
![]()
WilliamIRunisp
|
darknet links
|
![]()
WilliamIRunisp
|
darknet drug store
|
![]()
Donaldplaiz
|
Express Canada Pharm:
|
![]()
RabyHaigo
|
darknet markets onion address
|
![]()
Volodyasit
|
darknet market list
|
![]()
MarkNORah
|
darknet market links
|
![]()
Volodyasit
|
![]()
MarkNORah
|
dark web market list
|
![]()
Toliksit
|
darknet drugs
|
![]()
Toliksit
|
dark market 2025
|
![]()
WilliamIRunisp
|
dark web drug marketplace
|
![]()
Aviator - p5f
|
What’s Next for the Aviator Game?
As the fame for the Aviator game reaches new heights, its developers are constantly innovating. From adding new bonus rounds to hosting community challenges, the Aviator official website keeps the game fresh. For players seeking the newest features, following updates is essential. As Aviator games expand, their player numbers will surely continue to grow, solidifying the Aviator betting game as a top contender in the gaming industry. The As you dive into the Aviator online game, keep in mind the value of discipline. While the excitement of watching the plane climb the skies is unmatched, a measured approach will increase your chances of success. The real Aviator game is about making quick decisions, and it offers a moment of satisfaction every time you win a round. As the Aviator game captures more players worldwide, it’s clear that this groundbreaking game is a lasting phenomenon. Whether you’re playing for leisure or serious rewards, the Aviator crash game delivers moments of thrill. So, what are you waiting for? Visit the Aviator official website - The Aviator game shines in the world of online gaming due to its innovative design and thrilling unpredictability. From its easy-to-understand rules to its dynamic gameplay, it’s obvious why the game has gained a global following among casual players. One of the key draws of the Aviator game is its wide availability. Whether you’re downloading it for offline play, you’ll find that the game is optimized for all devices. This universal availability makes it perfect for players who value flexibility. |
![]()
FNDavidHaigo
|
darknet market list
|
![]()
DonaldRah
|
darkmarket
|
![]()
DonaldRah
|
darknet markets onion address
|
![]()
FNDavidHaigo
|
dark web sites
|
![]()
Pingunisp
|
dark market 2025
|
![]()
DonDonPally
|
darkmarket link
|
![]()
Pingunisp
|
darknet markets 2025
|
![]()
Toliksit
|
darkmarket link
|
![]()
FNDavidVag
|
darkmarket
|
![]()
MarkNONow
|
dark markets 2025
|