Часть II. Smarty для дизайнеров шаблонов

Содержание

3. Базовый синтаксис
Комментарии
Переменные
Функции
Параметры
Внедренные переменные в двойных кавычках
Арифметические операции
Предотвращение обработки Smarty
4. Переменные
Переменные, назначенные из PHP
Ассоциативные массивы
Индексы массивов
Объекты
Переменные файлов конфигурации
Зарезервированная переменная {$smarty}
Переменные запроса
{$smarty.now}
{$smarty.const}
{$smarty.capture}
{$smarty.config}
{$smarty.section}, {$smarty.foreach}
{$smarty.template}
{$smarty.version}
{$smarty.ldelim}, {$smarty.rdelim}
5. Модификаторы переменных
capitalize
cat
count_characters
count_paragraphs
count_sentences
count_words
date_format
default
escape
indent
lower
nl2br
regex_replace
replace
spacify
string_format
strip
strip_tags
truncate
upper
wordwrap
6. Комбинирование модификаторов
7. Встроенные функции
{capture}
{config_load}
{foreach},{foreachelse}
.index
.iteration
.first
.last
.show
.total
{if},{elseif},{else}
{include}
{include_php}
{insert}
{ldelim},{rdelim}
{literal}
{php}
{section},{sectionelse}
index
index_prev
index_next
iteration
first
last
rownum
loop
show
total
{strip}
8. Пользовательские Функции
{assign}
{counter}
{cycle}
{debug}
{eval}
{fetch}
{html_checkboxes}
{html_image}
{html_options}
{html_radios}
{html_select_date}
{html_select_time}
{html_table}
{mailto}
{math}
{popup}
{popup_init}
{textformat}
9. Конфигурационные файлы
10. Отладочная консоль
    Поддержать сайт на родительском проекте КГБ