Авторизация
Логин:
Пароль:
Забыли свой пароль?
Войти как пользователь:
Войти как пользователь
Вы можете войти на сайт, если вы зарегистрированы на одном из этих сервисов:
Подписка на рассылку
Реклама
11 лет сервису InKey.Biz.ua - Интернет бизнес под ключ.
Расскажи о нас


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

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


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

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

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

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


Страницы: Пред. 1 ... 2672 2673 2674 2675 2676 ... 2731 След.
0  
RichardBleks
http://topmaxfarma.com/# Top Max Farma
migliori farmacie online 2024
Имя Цитировать 0  
0  
RabyHaigo
darkmarket url  darknet markets 2025
Имя Цитировать 0  
0  
DonDonTyday
darknet drug links  darknet markets 2025
Имя Цитировать 0  
0  
KxyuPally
darkmarket url  darknet sites
Имя Цитировать 0  
0  
TyroneAdurl
Cytonic is revolutionizing blockchain security with advanced cybersecurity solutions tailored for Web3 applications. By integrating decentralized encryption, AI-powered threat detection, and smart contract auditing, Cytonic ensures maximum protection against cyber threats. Whether you’re securing DeFi protocols, NFTs, or enterprise blockchain systems, Cytonic’s cutting-edge security technology provides the highest level of data integrity and protection. https://cytonic.cc
Имя Цитировать 0  
0  
ThomasNer
Flaunch is the leading blockchain gaming launchpad, designed to help game developers and investors thrive in the Web3 gaming ecosystem. By offering secure token launches, NFT integrations, and decentralized crowdfunding, Flaunch enables game creators to fund, develop, and scale their projects with full transparency and community-driven support. Whether you’re a developer or an investor, Flaunch provides the tools to connect and grow in the blockchain gaming space. https://flaunch.tech
Имя Цитировать 0  
0  
RichardSex
https://topmaxfarma.com/# Top Max Farma
top farmacia online
Имя Цитировать 0  
0  
MasonTow
Имя Цитировать 0  
0  
TolikItamp
darknet markets onion address  dark web market urls
Имя Цитировать 0  
0  
Pingunisp
onion dark website  darknet websites
Имя Цитировать 0  
0  
Haroldhog
Farmacie on line spedizione gratuita: Top Max Farma - Top Max Farma
Имя Цитировать 0  
0  
MarkNORah
dark market  dark markets 2025
Имя Цитировать 0  
0  
MarkNORah
dark market onion  darknet markets 2025
Имя Цитировать 0  
0  
BillyMek
Имя Цитировать 0  
0  
EdwardBew
Имя Цитировать 0  
0  
Michaelunize
Struggling to lose weight? AquaSculpt is transforming weight loss with its natural, fast-acting capsules. Packed with proven AquaSculpt ingredients, these capsules burn fat, boost energy, and deliver real AquaSculpt results in weeks. Curious about AquaSculpt reviews? Users love its effectiveness and zero AquaSculpt side effects. Want to know AquaSculpt how to use? It’s simple—take daily and watch the pounds melt away. Ready to try? AquaSculpt buy now at https://aquasculpt.xyz and sculpt your dream body today!
Имя Цитировать 0  
0  
KxyuTyday
dark web market urls  darknet market list
Имя Цитировать 0  
0  
Donaldshevy
darkmarket  dark markets
Имя Цитировать 0  
0  
RabyHaigo
darknet markets  dark market url
Имя Цитировать 0  
0  
RabyHaigo
dark web sites  darknet marketplace
Имя Цитировать 0  
0  
Michaelunize
Upshift Finance is a next-generation decentralized trading platform designed to provide secure, fast, and efficient crypto transactions. With smart contract automation, low transaction fees, and seamless integration with DeFi protocols, Upshift Finance empowers traders to swap digital assets and execute trades with maximum security. Whether you're a beginner or an experienced trader, Upshift Finance offers a powerful, transparent, and user-friendly trading ecosystem. https://upshift.ink
Имя Цитировать 0  
0  
KxyuTyday
dark web markets  darknet links
Имя Цитировать 0  
0  
MarkNONow
darknet market  bitcoin dark web
Имя Цитировать 0  
0  
Link - flego
Internet-based gambling hubs have transformed the casino gaming landscape, delivering an unmatched level of accessibility and diversity that land-based casinos don’t provide. Over the past decade, a large audience worldwide have embraced the fun of digital casino play due to its ease of access, appealing qualities, and constantly growing collections of titles.

If you’re new with the world of virtual casino play or are looking to discover proven options, why not become part of our lively social network? It’s a hub where players share experiences, assisting you to improve your casino activities. Explore the conversation and start your journey now:  

One of the most compelling reasons of virtual gambling hubs is the vast variety of titles ready to play. Whether you love playing on traditional slot machines, trying out story-driven modern slot games, or mastering skills in card and board games like poker, internet-based gambling sites feature numerous opportunities. Many casinos moreover offer interactive dealer games, enabling you to participate with human game hosts and fellow gamblers, all while enjoying the authentic ambiance of a brick-and-mortar establishment from the comfort of your home.

In addition to diversity, online casinos thrive in constant connectivity.
Имя Цитировать 0  
0  
Volodyasit
darknet markets 2025  dark web market urls
Имя Цитировать 0  
Страницы: Пред. 1 ... 2672 2673 2674 2675 2676 ... 2731 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

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