Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
11 лет сервису WM.mk.ua - WebMoney Exchange in Nikolaev
Расскажи о нас


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

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 | След. | Конец


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

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

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

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


Страницы: Пред. 1 ... 2387 2388 2389 2390 2391 ... 2668 След.
0  
RabyHaigo
bitcoin dark web  dark websites
Имя Цитировать 0  
0  
RabyHaigo
darknet markets url  darknet markets url
Имя Цитировать 0  
0  
VictorDaupt
Сброс лишнего веса, расстройства пищевого поведения, психологическая коррекция, РПП, избыточная масса тела, помощь психолога. лишний вес
Имя Цитировать 0  
0  
MichaelBow
look what i found  
toast crypto wallet
Имя Цитировать 0  
0  
Link - flego
Online casinos have revolutionized the gaming industry, delivering a level of convenience and selection that traditional gambling houses don’t provide. In recent years, a growing community globally have chosen the excitement of online gaming in light of its anytime, anywhere convenience, exciting features, and continuously increasing game libraries.

If you’re a beginner with the world of virtual gambling or would like to discover trusted platforms, why not sign up for our dynamic community? It’s a platform where gaming aficionados discuss insights, making it easier for you to enhance your gaming journey. Dive into the conversation and learn more now: http://kakoda.blog.rs/blog/kakoda/grafika-dizajn-stampa/2007/12/29/kako-da-uredite-slike-sa-vistom-ili-xp-om

One of the main appeals of digital gambling sites is the astounding variety of games available. Whether you love rolling vintage one-armed bandits, diving into plot-filled modern slot games, or strategizing in traditional table offerings like poker, internet-based gambling sites deliver infinite possibilities. Several sites moreover introduce interactive dealer games, giving you the chance you to communicate with actual dealers and other players, all while immersing yourself in the lifelike atmosphere of a real casino from the comfort of your home.

Adding to the extensive catalog, online casinos excel constant connectivity.
Имя Цитировать 0  
0  
DonDonpen
darknet drug store  dark market link
Имя Цитировать 0  
0  
MichaelZek
find out here now multibit classic
Имя Цитировать 0  
0  
Tolikovemo
dark web link  dark market 2025
Имя Цитировать 0  
0  
Social Link - flego
The Reasons Behind Why Online Casinos Remain So Popular

Virtual gambling platforms have reshaped the betting industry, delivering an unmatched level of convenience and variety that land-based casinos fall short of. Over time, a growing community across the globe have turned to the pleasure of digital casino play because of its anytime, anywhere convenience, engaging traits, and continuously increasing game libraries.

If you’re a beginner with the world of online gaming or are looking to delve deeper into trusted platforms, why not become part of our vibrant gaming forum? It’s a platform where players offer tips, guiding you to enjoy more of your virtual play. Check out the experience and visit us now: aviator game download

One of the main appeals of digital gambling sites is the incredible range of games on offer. Whether you love playing on traditional slots, trying out engaging video-based games, or testing your strategy in card and board games like Roulette, online platforms boast limitless options. Many casinos additionally present live dealer games, allowing you to interact with live hosts and opponents, all while taking in the realistic ambiance of a brick-and-mortar establishment without leaving your home.

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

Beyond variety, online casinos thrive in availability.
Имя Цитировать 0  
0  
DonaldRah
dark market list  darknet market
Имя Цитировать 0  
0  
RabyHaigo
dark websites  dark market list
Имя Цитировать 0  
0  
Pingunisp
bitcoin dark web  dark markets
Имя Цитировать 0  
0  
Pingunisp
dark markets  dark markets
Имя Цитировать 0  
0  
888starzandroidonliner
Имя Цитировать 0  
0  
888starzandroidonliner
Имя Цитировать 0  
0  
MichaelZek
a fantastic read  
MultiBit Classic download
Имя Цитировать 0  
0  
Social Link - flego
What Makes Online Casinos Remain Highly Preferred Worldwide

Online casinos have revolutionized the betting landscape, offering an unmatched level of convenience and variety that land-based establishments struggle to rival. Throughout the last ten years, a growing community worldwide have adopted the adventure of online gaming in light of its always-open nature, thrilling aspects, and constantly growing selection of games.

If you’re just starting with the world of online gaming or want to delve deeper into reliable sites, why not engage with our vibrant interactive platform? It’s a platform where gamblers share stories, making it easier for you to get the most out of your virtual play. Discover the discussions and check it out now: https://pinterest.com/Mines_Juego_Venezuela

One of the main appeals of internet-based platforms is the vast array of entertainment options provided. Whether you like rolling vintage one-armed bandits, exploring narrative-rich thematic slots, or mastering skills in card and board games like Baccarat, online platforms deliver countless entertainment avenues. Numerous services furthermore introduce live dealer games, giving you the chance you to participate with human game hosts and other players, all while immersing yourself in the immersive atmosphere of a real casino in your own space.

Social URL: https://pinterest.com/Mines_Juego_Venezuela

In addition to diversity, virtual gaming providers are known for constant connectivity.
Имя Цитировать 0  
0  
JasonRex
Consistent excellence across continents.
how can i get cheap cipro pills
Their team understands the nuances of global healthcare.
Имя Цитировать 0  
0  
MalcolmLougs
Имя Цитировать 0  
0  
Toliksit
darknet market list  darknet market lists
Имя Цитировать 0  
0  
MarkJulge
Как выбрать надёжного застройщика? Узнайте подробности https://topkadastr-crimea.ru/
Имя Цитировать 0  
0  
ayleeyShelt
Termoplitka большой выбор материалов предоставляет. Наши термопанели - это простой способ преобразить фасад вашего дома. Цена их вполне доступная. Мы заинтересованы в долгосрочном сотрудничестве. Ищете фасадные термопанели купить для наружной отделки дома? Termo-plitka.ru/catalog/termopaneli-fasadnye/termopaneli-fasadnye-bestpoint-ppu - здесь можете купить термопанели для отделки фасада дома. Репутацией своей мы дорожим. Предлагаем продукцию, которая соответствует высоким стандартам. Для обсуждения деталей доставки и оплаты, обратитесь к нам по телефону, указанному на сайте.
Имя Цитировать 0  
0  
MichaelBow
Имя Цитировать 0  
0  
DonaldRah
darknet market lists  darknet sites
Имя Цитировать 0  
0  
RabyHaigo
dark websites  bitcoin dark web
Имя Цитировать 0  
Страницы: Пред. 1 ... 2387 2388 2389 2390 2391 ... 2668 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

1QH.net - Unique Quality Hosting.network
liqpay webmoney privat24 visa mastercard
2002-2017 © InKey
All rights reserved