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


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

02.10.2009

Пример подключения движка Smarty:

В массиве $arCustomTemplateEngines регистрируется движок Smarty:

global $arCustomTemplateEngines;
$
arCustomTemplateEngines = array(
   "smarty" => array(
      "templateExt" => array("tpl"),
      "function" => "SmartyEngine"
   ),
);

В функции SmartyEngine инициализируются параметры движка в соответствии с требованиями Smarty (см. систему помощи Smarty). Далее в Smarty передаются переменные результатов работы компонента, входных параметров, языковых сообщений и т.д., а в конце вызывается метод обработки и показа шаблона Smarty:

function SmartyEngine($templateFile, $arResult, $arParams, $arLangMessages, $templateFolder, $parentTemplateFolder, $template)
{
   if (!defined("SMARTY_DIR"))
      define("SMARTY_DIR", "<
абсолютныйпутькдвижку Smarty>/libs/");

   require_once( '<
абсолютныйпутькдвижку Smarty>/libs/Smarty.class.php' );

   $smarty = new Smarty;

   $smarty->compile_dir = "<
абсолютныйпутькдвижку Smarty>/templates_c/";
   $smarty->config_dir = "<
абсолютныйпутькдвижку Smarty>/configs/";
   $smarty->template_dir = "<
абсолютныйпутькдвижку Smarty>/templates/";
   $smarty->cache_dir = "<
абсолютныйпутькдвижку Smarty>/cache/";

   $smarty->compile_check = true;
   $smarty->debugging = false;

   $smarty->assign("arResult", $arResult);
   $smarty->assign("arParams", $arParams);
   $smarty->assign("MESS", $arLangMessages);
   $smarty->assign("templateFolder", $templateFolder);
   $smarty->assign("parentTemplateFolder", $parentTemplateFolder);

   $smarty->display( $_SERVER["DOCUMENT_ROOT"].$templateFile );
}

В строке "<абсолютныйпутькдвижку Smarty>" указывается абсолютный путь к движку Smarty.


Страница 2 - 2 из 3
Начало | Пред. | 1 2 3 | След. | Конец


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

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

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

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


Страницы: Пред. 1 ... 2694 2695 2696 2697 2698 ... 2946 След.
0  
Volodyasit
darknet markets  dark market link
Имя Цитировать 0  
0  
DonDonTyday
darkmarket list  dark markets
Имя Цитировать 0  
0  
MarkNONow
dark markets 2025  dark web link
Имя Цитировать 0  
0  
Toliksit
dark web markets  dark market link
Имя Цитировать 0  
0  
Toliksit
dark web market urls  darknet marketplace
Имя Цитировать 0  
0  
Social Link - flego
The Reasons Behind Why Online Casinos Are Becoming a Global Phenomenon

Internet-based gambling hubs have modernized the gambling market, offering a level of convenience and diversity that conventional venues struggle to rival. Recently, a large audience worldwide have turned to the fun of internet-based gaming thanks to its always-open nature, appealing qualities, and constantly growing catalogs of games.

If you’re just starting with the world of virtual gambling or seek to learn about proven options, why not sign up for our lively gaming forum? It’s a space where enthusiasts post stories, making it easier for you to enjoy more of your gaming journey. Join the community and learn more now: https://t.me/dragontiger_brazil

One of the key draws of digital gambling sites is the incredible selection of choices available. Whether you prefer spinning classic slot machines, trying out narrative-rich thematic slots, or testing your strategy in strategy-based games like Baccarat, casino websites offer infinite possibilities. Many casinos moreover offer interactive dealer games, enabling you to connect with actual dealers and gaming peers, all while soaking in the authentic atmosphere of a land-based casino from anywhere you want.

Social URL: https://t.me/dragontiger_brazil

Apart from the game range, internet-based gambling hubs thrive in accessibility.
Имя Цитировать 0  
0  
KxyuTyday
dark market list  dark market
Имя Цитировать 0  
0  
DonDonTyday
dark web marketplaces  darknet market links
Имя Цитировать 0  
0  
RabyHaigo
darkmarket 2025  darkmarket 2025
Имя Цитировать 0  
0  
Pingrar
darknet markets links  tor drug market
Имя Цитировать 0  
0  
MayJEM
Привет! Любопытно, где вы обычно покупаете одежду. Выбираете ли в обычных магазинах или покупаете в интернете?
Какие факторы для вас ключевые – оценить вещь вживую либо всё же удобство онлайн-шопинга?
Любопытно узнать мнений и опыта!



________________
http://www.fashiontime.ru/fashion/reviews/1375177.html
Имя Цитировать 0  
0  
CharlesMub
buying prescription drugs in mexico mexican pharmacy acp mexican pharmacy acp
Имя Цитировать 0  
0  
TerenceWrors
Бонусы без отыгрыша за регистрацию Бездепозитные бонусы с выводом
Имя Цитировать 0  
0  
RandallSef
Indian pharmacy international shipping: India pharmacy ship to USA - Indian pharmacy online
Имя Цитировать 0  
0  
TolikItamp
darknet drug market  dark markets 2025
Имя Цитировать 0  
0  
RonaldWam
Drug reactions explained. Medication guide here.
buy prednisone uk
Detailed drug knowledge. Latest pill developments.
Имя Цитировать 0  
0  
FNDavidHaigo
dark websites  darkmarket list
Имя Цитировать 0  
0  
FNDavidHaigo
darknet drugs  dark web markets
Имя Цитировать 0  
0  
RonaldNeuby
Comprehensive medicine guide. Medicine brochure provided.
order deltasone
Comprehensive medicine overview. Medication overview available.
Имя Цитировать 0  
0  
Volodyasit
dark web market urls  darkmarket list
Имя Цитировать 0  
0  
TyroneAdurl
Noon Capital is revolutionizing real estate crowdfunding by offering secure, decentralized, and high-yield investment opportunities. Through blockchain-powered property financing, Noon Capital investment platform allows investors to participate in fractional real estate ownership, earn passive income, and diversify their portfolios with full transparency and security. Whether you're an institutional investor or an individual seeking real estate-backed DeFi solutions, Noon Capital provides a seamless and profitable investment experience. https://noon.ad
Имя Цитировать 0  
0  
Volodyasit
dark web market list  darkmarket
Имя Цитировать 0  
0  
FNDavidHaigo
tor drug market  dark web link
Имя Цитировать 0  
0  
Donaldshevy
dark web link  darknet markets 2025
Имя Цитировать 0  
0  
WilliamIRunisp
dark market list  dark markets 2025
Имя Цитировать 0  
Страницы: Пред. 1 ... 2694 2695 2696 2697 2698 ... 2946 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

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