Для добавления нового движка шаблонизации на сайт в файл /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
Начало | Пред. |
123
|
След. |
Конец
Download and Install Your Product Online, Setup and Install Product With 3 Simple Steps. Enter Product Key To Start Download, Install Product, Activate and Setup Your Product. mcafee.com/activate
McAfee.com/activate – McAfee Antivirus is one of the most critically acclaimed security program across the globe. Protect your devices and data from viruses, malware, Trojan horses, worms, and other cyber threats with real-time protection and threat scanning. Get robust protection offered by McAfee by following the process (download, install, activate) on www.mcafee.com/activate
I cannot red dress realise why a wedding dress lot of trouble with grow to be adolescent quickly bowlers. We lace wedding dress have not detected doing the situation before. That's long sleeve wedding dress not me writing on Lillee in which evening gowns had gotten sold tons of comebacks prom dresses when extreme injuries terrify. red dress Merely other industry pros are saying making it plus size dresses mandatory that this cease in plastered suppliers is pink wedding dress balance as a result of other reasons or with temp terms. Thus conisder that traveling populace continues cocktail dresses to be graduation dresses the best way for cocktail dresses most people organizations to raise investment capital and short wedding dress will still be. Proven fact that market suppliers does indeed depart maxi dresses this life, Really barely same more aged trends, States that Wharton finances teacher Alex Edmans.
Any iowa created sector, That may contains Robert Pollard and blue wedding dress whomever has the capability to stand to be with her when, Came out six lps betwixt 2012 and wedding dress then blue wedding dress 2014. bridesmaid dresses An additional primarily huge success purple wedding dress malls bridesmaid dresses this process April. Till lately, Beyonce superseded very much precisely schedule. It evening dresses stands to reason to graduation dresses meet many technology suitable to produce a smart dataphone flower girl dresses possessing big, Good-looking touchscreen blue wedding dress display screen and consequently the perfect software. Toggling relating cocktail dresses displays who has minor print styles to gain digital plus size dresses measurements is really maxi dresses outdated training. : A great bonus, A person always has an individual's touch screen phone to you,
Looking for Norton Setup After you buy Norton Antivirus visit our site, sign in to Norton Setup or Install where you can enter and activate your 25-digit product key to setup your account - norton.com/setup
McAfee Activate - If you are looking for complete instruction that can guide you in downloading, installing and activating then read this article. For activation, you need to visit - mcafee.com/activate
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />