Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
1QH.net - Unique Quality Hosting.network
Расскажи о нас


Пользовательские движки шаблонизации

02.10.2009

Для добавления нового движка шаблонизации на сайт в файл /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 | След. | Конец


Количество показов: 77881976
Рейтинг:  3.3

Возврат к списку

(Голосов: 1, Рейтинг: 3.3)

Материалы по теме:


Страницы: Пред. 1 ... 2790 2791 2792 2793 2794 ... 2859 След.
0  
JosephLox
Elara Finance is transforming decentralized lending by offering secure, transparent, and flexible crypto loan solutions. Built on blockchain technology, Elara Finance enables users to borrow and lend digital assets seamlessly without intermediaries. With low-interest rates, automated smart contracts, and a permissionless DeFi environment, Elara Finance is making crypto lending accessible and profitable for investors worldwide. https://elara.ink
Имя Цитировать 0  
0  
Pingunisp
darknet drug market  https://github.com/darknetmarkets2025/darknetmarketlinks  darknet markets onion
Имя Цитировать 0  
0  
Pingunisp
onion dark website  https://github.com/darknetmarkets2025/darknetmarketlinks  darknet market lists
Имя Цитировать 0  
0  
MorganSnorn
Best online Indian pharmacy: Online medicine home delivery - Best Indian pharmacy
Имя Цитировать 0  
0  
RabyHaigo
Имя Цитировать 0  
0  
RabyHaigo
Имя Цитировать 0  
0  
DonDonpen
dark web market  https://github.com/darkwebwebsites/darkwebwebsites  dark web sites
Имя Цитировать 0  
0  
KxyuPally
best darknet markets  dark market onion
Имя Цитировать 0  
0  
CharlesKal
India pharmacy ship to USA indian pharmacy indian pharmacy
Имя Цитировать 0  
0  
MarkNONow
darknet links  best darknet markets
Имя Цитировать 0  
0  
Pingunisp
dark market 2025  https://github.com/darknetmarkets2025/darknetmarketlinks  darknet websites
Имя Цитировать 0  
0  
DonaldRah
Имя Цитировать 0  
0  
DonaldRah
darknet websites  https://github.com/darkwebmarketslinks/darkwebmarkets  darknet market list
Имя Цитировать 0  
0  
Volodyasit
darknet drug links  dark websites
Имя Цитировать 0  
0  
RabyHaigo
Имя Цитировать 0  
0  
TerenceWrors
Имя Цитировать 0  
0  
KxyuTyday
dark web market  dark market
Имя Цитировать 0  
0  
DonaldRah
Имя Цитировать 0  
0  
KxyuTyday
darknet markets  bitcoin dark web
Имя Цитировать 0  
0  
Social Link - flego
Reasons Why Online Casinos Are a Worldwide Trend

Digital casinos have modernized the gambling scene, delivering a unique kind of convenience and selection that traditional casinos are unable to replicate. Over time, millions of players globally have chosen the excitement of online gaming due to its availability, captivating elements, and widening catalogs of games.

If you’re a beginner with the world of digital casinos or seek to explore reputable operators, why not participate in our growing interactive platform? It’s a place where enthusiasts share tips, helping you to get the most out of your gaming journey. Explore the discussions and see it here now: 1bet app

One of the strongest selling points of digital gambling sites is the incredible range of gaming experiences at your disposal. Whether you enjoy spinning retro fruit machine slots, diving into theme-based video-based games, or strategizing in traditional table offerings like Baccarat, internet-based gambling sites deliver infinite choices. Many casinos moreover present live dealer games, giving you the chance you to engage with real dealers and co-players, all while experiencing the engaging ambiance of a traditional gambling venue right at home.

Social URL: https://www.facebook.com/profile.php?id=61569299482300

Adding to the extensive catalog, online casinos excel availability.
Имя Цитировать 0  
0  
Pingunisp
Имя Цитировать 0  
0  
Pingunisp
darknet drug links  https://github.com/darknetmarkets2025/darknetmarketlinks  dark market onion
Имя Цитировать 0  
0  
Link - flego
Virtual gambling platforms have modernized the betting scene, delivering a level of ease and diversity that conventional gambling houses don’t provide. Throughout the last ten years, countless gamblers worldwide have welcomed the pleasure of online gaming as a result of its always-open nature, exciting features, and ever-expanding catalogs of games.

If you’re new with the world of online gaming or hope to learn about reliable sites, why not join our lively online hub? It’s a space where fans share stories, guiding you to get the most out of your virtual play. Join the conversation and check it out now: https://hikvisiondb.webcam/wiki/User:Juliet8348

One of the strongest selling points of virtual gambling hubs is the incredible variety of titles ready to play. Whether you enjoy playing on old-school slots, exploring plot-filled modern slot games, or strategizing in strategy-based games like Texas Hold’em, casino websites offer endless entertainment avenues. Numerous services moreover introduce interactive dealer games, giving you the chance you to participate with real dealers and gaming peers, all while soaking in the lifelike feel of a land-based casino in your own space.

Adding to the extensive catalog, online casinos are known for accessibility.
Имя Цитировать 0  
0  
WilliamWhasy
canadian pharmacy online ship to usa canadian pharmacy price checker or www canadianonlinepharmacy
https://www.veropharm.ru/redirect/?url=http://canadianpharmacyaapd.com northwest pharmacy canada
canada drug pharmacy best canadian pharmacy online and pharmacies in canada that ship to the us buy drugs from canada
Имя Цитировать 0  
0  
WilliamSkymN
Side effects explained. Drug facts provided.
compare prescription prices
Drug facts provided. Pill info available.
Имя Цитировать 0  
Страницы: Пред. 1 ... 2790 2791 2792 2793 2794 ... 2859 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

liqpay webmoney privat24 visa mastercard
2002-2017 © InKey
All rights reserved