Для добавления нового движка шаблонизации на сайт в файл /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
|
След. |
Конец
Reasons Why Online Casinos Remain an International Sensation
Digital casinos have changed the gaming industry, offering a level of ease and selection that conventional establishments don’t provide. Over time, a vast number of enthusiasts internationally have welcomed the pleasure of online gaming because of its always-open nature, captivating elements, and continuously increasing selection of games.
If you’re new with the world of online gaming or would like to delve deeper into proven options, why not join our growing online hub? It’s a hub where enthusiasts offer insights, assisting you to enhance your gambling adventure. Explore the discussions and start your journey now: aviator download
One of the strongest selling points of internet-based platforms is the unparalleled array of games available. Whether you like rolling traditional fruit machine slots, playing through engaging visual slot games, or mastering skills in table games like poker, online platforms boast numerous choices. A large number of platforms additionally introduce live casino options, allowing you to interact with live hosts and co-players, all while enjoying the engaging ambiance of a land-based casino in your own space.
If you have been in a car accident, having the most experienced car accident lawyer can be crucial. A skilled lawyer can help you navigate claims with insurers, secure fair compensation, and even represent you in court if needed.
- Consider Expertise – Choose a lawyer with a proven history in handling vehicle collision lawsuits. - Read Testimonials – Client testimonials can give you insight into a legal expert’s professionalism. - Free Consultations – Many attorneys offer a free first meeting, so take advantage of this to discuss your case. - Familiarity with Local Courts – Searching for a nearby vehicle crash lawyer ensures that they are well-versed in regional legal procedures. - No Win, No Fee – Many personal injury lawyers work on a performance-based agreement, meaning there are no legal fees unless you receive compensation.
Even if the crash appears simple, insurance companies often try to reduce compensation. A experienced accident lawyer can fight for the compensation, including treatment costs, income loss, and emotional distress.
If you want professional guidance, don’t wait—find a car accident lawyer near me today and fight for your claim!
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />