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


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

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


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

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

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

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


Страницы: Пред. 1 ... 2622 2623 2624 2625 2626 ... 3202 След.
0  
WilliamIRunisp
dark market 2025  darknet drug store
Имя Цитировать 0  
0  
TerenceNoxor
фриспины без депозита за регистрацию с выводом Игровые автоматы с бездепозитным бонусом за регистрацию с выводом
Имя Цитировать 0  
0  
WilliamIRunisp
darkmarket  dark market onion
Имя Цитировать 0  
0  
RabyHaigo
darknet site  dark market onion
Имя Цитировать 0  
0  
Volodyasit
darknet markets url  darknet links
Имя Цитировать 0  
0  
KxyuTyday
dark web market list  dark web markets
Имя Цитировать 0  
0  
KxyuTyday
darknet market list  darknet site
Имя Цитировать 0  
0  
DonDonTyday
darknet websites  darkmarket
Имя Цитировать 0  
0  
FNDavidVag
dark web market list  dark web market urls
Имя Цитировать 0  
0  
PingPap
bitcoin dark web  dark market 2025
Имя Цитировать 0  
0  
ThomasRax
read this post here  
smartwallet
Имя Цитировать 0  
0  
DonDonTyday
darknet websites  dark web market links
Имя Цитировать 0  
0  
DanielRaw
“You get some of me but not tomorrow as they want me in as soon as I can make it happen. This is the one time when they say jump and I ask how high due the financial gains the company could benefit from and it being important enough for the client to appear in person.”

“Well I get an extra night of you at least! I wonder what we could do with that? Meantime, what about food? I am starving and delicious as it was a second breakfast is not quite enough to replenish me!”

“Well get something on and we’ll sort that out first.”

We drove into town and decided that a daytime visit to Charlie’s was going to be the answer. I parked in the bar lot and Elise dashed in to change into something more appropriate, jeans and a t-shirt along with her biker jacket but keeping her Converses on.

Walking down to the restaurant was different from the middle of the night visits as the streets were bustling and all of the shops and outlets were open.

Reaching Charlie’s we entered the front door and sat in a booth near the window. A beautiful young American Chinese girl came,smiled and said hello to Elise and gave us menus and asked if we wanted drinks in the meantime.

"No thanks Lin just a pot of Jasmine tea for us please." Lin went back to the kitchen area. “No booze for me today as I will have to work in the bar so it is just tea for me.”

Not in a drinking mood either, I agreed with her."

https://cannabis.net/user/162435
https://tubeteencam.com/user/whwhhhh1984/profile
https://rentry.org/eu6p2rfk
https://imageevent.com/braas19681957
https://tubeteencam.com/user/ulissa1950/profile
Имя Цитировать 0  
0  
Fang2203
Хочу понять в https://epiczo.com/?p=254 бизнесе. Куда зайти?
Имя Цитировать 0  
0  
Danielgaf
“You get some of me but not tomorrow as they want me in as soon as I can make it happen. This is the one time when they say jump and I ask how high due the financial gains the company could benefit from and it being important enough for the client to appear in person.”

“Well I get an extra night of you at least! I wonder what we could do with that? Meantime, what about food? I am starving and delicious as it was a second breakfast is not quite enough to replenish me!”

“Well get something on and we’ll sort that out first.”

We drove into town and decided that a daytime visit to Charlie’s was going to be the answer. I parked in the bar lot and Elise dashed in to change into something more appropriate, jeans and a t-shirt along with her biker jacket but keeping her Converses on.

Walking down to the restaurant was different from the middle of the night visits as the streets were bustling and all of the shops and outlets were open.

Reaching Charlie’s we entered the front door and sat in a booth near the window. A beautiful young American Chinese girl came,smiled and said hello to Elise and gave us menus and asked if we wanted drinks in the meantime.

"No thanks Lin just a pot of Jasmine tea for us please." Lin went back to the kitchen area. “No booze for me today as I will have to work in the bar so it is just tea for me.”

Not in a drinking mood either, I agreed with her."

https://rentry.org/dnqsmh88
https://cannabis.net/user/163698
https://www.dnnsoftware.com/activity-feed/my-profile/userid/3217188
https://www.metal-archives.com/users/snagit1957
https://www.haikudeck.com/presentations/AHpjXZOUw8
Имя Цитировать 0  
0  
Danielacarp
“You get some of me but not tomorrow as they want me in as soon as I can make it happen. This is the one time when they say jump and I ask how high due the financial gains the company could benefit from and it being important enough for the client to appear in person.”

“Well I get an extra night of you at least! I wonder what we could do with that? Meantime, what about food? I am starving and delicious as it was a second breakfast is not quite enough to replenish me!”

“Well get something on and we’ll sort that out first.”

We drove into town and decided that a daytime visit to Charlie’s was going to be the answer. I parked in the bar lot and Elise dashed in to change into something more appropriate, jeans and a t-shirt along with her biker jacket but keeping her Converses on.

Walking down to the restaurant was different from the middle of the night visits as the streets were bustling and all of the shops and outlets were open.

Reaching Charlie’s we entered the front door and sat in a booth near the window. A beautiful young American Chinese girl came,smiled and said hello to Elise and gave us menus and asked if we wanted drinks in the meantime.

"No thanks Lin just a pot of Jasmine tea for us please." Lin went back to the kitchen area. “No booze for me today as I will have to work in the bar so it is just tea for me.”

Not in a drinking mood either, I agreed with her."

https://www.hentai-foundry.com/user/flashmod1967/profile
https://imageevent.com/nightvui1973
https://haveagood.holiday/users/357218
https://rentry.org/qhsrm3pk
https://rentry.org/vz2udvdn
Имя Цитировать 0  
0  
TolikItamp
dark market list  darkmarket list
Имя Цитировать 0  
0  
Haroldhog
Top Max Farma: Top Max Farma - top farmacia online
Имя Цитировать 0  
0  
MatthewLic
Где можно посмотреть зарубежные сериалы в хорошем качестве бесплатно? Круги на воде (сериал 2025, Россия) смотреть онлайн все серии подряд бесплатно в хорошем качестве
Имя Цитировать 0  
0  
ThomasRax
read the article wallet smart
Имя Цитировать 0  
0  
WilliamIRrar
dark market url  darknet drugs
Имя Цитировать 0  
0  
KxyuTyday
dark web market urls  darknet marketplace
Имя Цитировать 0  
0  
StacyLah
Имя Цитировать 0  
0  
Pingunisp
dark websites  dark market 2025
Имя Цитировать 0  
0  
Volodyasit
dark markets 2025  dark market 2025
Имя Цитировать 0  
Страницы: Пред. 1 ... 2622 2623 2624 2625 2626 ... 3202 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

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