Для добавления нового движка шаблонизации на сайт в файл /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) |
![]()
RonaldTeK
|
Going Here
|
![]()
ThomasCah
|
online shopping pharmacy india
|
![]()
CurtisNut
|
canada drugstore pharmacy rx:
|
![]()
Barrynat
|
Here’s an article that got me thinking give it a try
|
![]()
Jamespaf
|
go to these guys
|
![]()
CurtisNut
|
mexican drugstore online:
|
![]()
RonaldTeK
|
discover this info here
|
![]()
JuniorImalp
|
Hey food lovers! Have you ever wondered what makes the foods of England so special? Whether you’re a foodie on a quest to expand your culinary horizons or just someone looking to enjoy comforting traditional dishes, England has a variety of mouthwatering foods that you simply can’t miss. Let me take you on a culinary journey through the best foods of England. You’ve probably heard of a classic English breakfast, but did you know it’s a perfect balance of flavors, with eggs, sausages, beans, grilled tomatoes, and crispy bacon? But the fun doesn’t stop there! Traditional British dishes like fish and chips will have you craving more with its perfectly battered fish and crunchy golden fries. And how can I forget about Sunday roast? This is a must-try, where succulent roast meats like beef, lamb, or chicken are served with fluffy Yorkshire puddings, crispy roast potatoes, and rich gravy. It’s the ultimate comfort food, especially when enjoyed with your loved ones on a chilly afternoon. If you’re someone who enjoys a good pub meal, England has that covered too. Picture yourself sinking your teeth into a hearty meat pie, with the filling of your choice, from steak and ale to chicken and mushroom. Don’t forget about the British puddings either! A rich and creamy sticky toffee pudding or the timeless spotted dick will satisfy your sweet tooth in the most decadent way. Trust me, the foods of England are an adventure in themselves. If you’ve yet to explore the vast variety of traditional English foods, now is the time. And if you’ve already indulged, there’s always something new to discover! Come explore more about the incredible flavors, history, and culture behind these iconic dishes in my blog. You’ll be drooling by the end! |
![]()
Stevepieva
|
internet
|
![]()
Jamesvom
|
Going Here
|
![]()
AngelMubre
|
|
![]()
MurrayNaima
|
learn this here now
|
![]()
CurtisNut
|
mexico drug stores pharmacies:
|
![]()
AndreDeaky
|
reliable canadian pharmacy
buy medicines online in india |
![]()
JamesNof
|
Learn More Here
|
![]()
Murraywep
|
blog here
|
![]()
AndreDeaky
|
reputable canadian online pharmacy
buy prescription drugs from india |
![]()
BonusCasinodot
|
For casino romantics
Play at the best Casino online platforms for secure transactions, exciting bonuses, and fast payouts. The best online casinos at the link - pokerfom, novomatic, game casino, casinora п»їa href bonus rules slot first deposit, https jetton fan ru, weis casino, cs fail casino Great wins in Casino Online! |
![]()
MurrayNaima
|
helpful hints
|
![]()
Murraywep
|
check it out
|
![]()
Ronaldbadly
|
his explanation
|
![]()
Stevecax
|
try this website
|
![]()
Stevecax
|
check over here
|
![]()
Brandonmup
|
onlinepharmaciescanada com:
|
![]()
Danielrox
|