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


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

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


Количество показов: 40740019

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

(Нет голосов)

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


Страницы: Пред. 1 ... 3652 3653 3654 3655 3656 ... 66229 След.
0  
Ioilsow
be0031 need payday loan now



http://loansoloie.com/ project ghost writer



https://tabserectilecheap.com/ pills similar to viagra



https://via1buynow.com/
Имя Цитировать 0  
0  
sow
cialis prix en suisse

cialis generico recet
   cheap cialis

effet cialis naturel
Имя Цитировать 0  
0  
IoilMot
be0031 cash loan places in canton ohio



http://loansoloie.com/ powerpoints online



https://tabserectilecheap.com/ best way make viagra work



https://via1buynow.com/
Имя Цитировать 0  
0  
Ioilsow
be0031 smile small loans



http://loansoloie.com/ creative writing online



https://tabserectilecheap.com/ ventas baratas de viagra



https://via1buynow.com/
Имя Цитировать 0  
0  
IoilMot
be0031 cash advance in lanett al



http://loansoloie.com/ definition of writing by experts



https://tabserectilecheap.com/ viagra e cortisone



https://via1buynow.com/
Имя Цитировать 0  
0  
Mot
we use it professional cialis

just try cialis generico
   buy cheap cialis

forum cialis sur internet
Имя Цитировать 0  
0  
KarpovMot
be0031 academic writing mercury reader custom



https://tabserectilecheap.com/
Имя Цитировать 0  
0  
Karpovsow
be0031 geography help



https://tabserectilecheap.com/
Имя Цитировать 0  
0  
Karpovsow
Имя Цитировать 0  
0  
KarpovMot
be0031 writing stories online



https://tabserectilecheap.com/
Имя Цитировать 0  
0  
JackJomia
Имя Цитировать 0  
0  
KarpovMot
be0031 customs writing



https://tabserectilecheap.com/
Имя Цитировать 0  
0  
Karpovsow
be0031 custom writing blog



https://tabserectilecheap.com/
Имя Цитировать 0  
0  
KehlMot
be0031 cialis side effects back pain



http://cialisooie.com/ cheap 40 mg cialis



http://cialisuqpor.com/ ording viagra online cost



https://frviagrafrance.com/ secured personal loans florida



http://loansoloie.com/
Имя Цитировать 0  
0  
Kehlsow
be0031 generico del cialis en chile



http://cialisooie.com/ just try cialis 20 mg



http://cialisuqpor.com/ closest pill to viagra



https://frviagrafrance.com/ bad credit signature loans nashville tn



http://loansoloie.com/
Имя Цитировать 0  
0  
KehlMot
be0031 online cialis for daily use



http://cialisooie.com/ soft cialis india



http://cialisuqpor.com/ kpa viagra i grekland



https://frviagrafrance.com/ sp fast cash index



http://loansoloie.com/
Имя Цитировать 0  
0  
Kehlsow
be0031 cialis online deutschland



http://cialisooie.com/ try cialis for free



http://cialisuqpor.com/ are there generic viagra



https://frviagrafrance.com/ installment loan direct lenders no credit check



http://loansoloie.com/
Имя Цитировать 0  
0  
sow
online online user href cialis

buy cialis
   cialis levitra comparison

enter site approved cialis
Имя Цитировать 0  
0  
Mot
prix cialis tadalafil 5mg

we like it us cialis pharmacy
   cialis forum hr

walmart buy cialis levitra
Имя Цитировать 0  
0  
Kehlsow
be0031 from how old can use cialis



http://cialisooie.com/ cialis e tadalafil



http://cialisuqpor.com/ when is viagra going generic



https://frviagrafrance.com/ personal loan or secured loan



http://loansoloie.com/
Имя Цитировать 0  
0  
sow
how cialis to now

ordering cialis online forum
   buy cheap cialis

cialis in holland kaufe
Имя Цитировать 0  
0  
KehlMot
be0031 generico del cialis en chile



http://cialisooie.com/ cialis generico napoli



http://cialisuqpor.com/ viagra buy in netherland



https://frviagrafrance.com/ instant cash loans sa



http://loansoloie.com/
Имя Цитировать 0  
0  
KehlMot
be0031 pastilla de cialis en lnea



http://cialisooie.com/ cialis how many do i take



http://cialisuqpor.com/ rx online viagrapeople group



https://frviagrafrance.com/ payday loan locations in phoenix az



http://loansoloie.com/
Имя Цитировать 0  
0  
Kehlsow
be0031 generico del cialis en chile



http://cialisooie.com/ does va pharmacy have cialis



http://cialisuqpor.com/ viagra 100mg sildenafil



https://frviagrafrance.com/ unsecured personal loans online no credit check



http://loansoloie.com/
Имя Цитировать 0  
0  
Invcrv
Имя Цитировать 0  
Страницы: Пред. 1 ... 3652 3653 3654 3655 3656 ... 66229 След.
Текст сообщения*
Загрузить файл или картинкуПеретащить с помощью Drag'n'drop
Перетащите файлы
Ничего не найдено
Отправить Отменить
Защита от автоматических сообщений
 
Публикация статей
На данной странице представлены элементы инфоблока статьи, относящиеся к типу Публикации. Статьи опубликованы на странице с помощью комплексного компонента Новостной раздел с указанием параметров инфоблока Статьи. При создании каждой статьи был использован тег <break />, который позволяет осуществить разделение статьи на страницы. В публичном разделе такая статья будет представлена в виде нескольких страниц в зависимости от количества тегов <break />

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