What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
Данная строка добавляется к модифицируемому значению переменной.
Позиция параметра | Тип | Обязателен | cat | Описание |
---|---|---|---|---|
1 | string | Нет | пусто | Данная строка добавляется к модифицируемому значению. |
Example 5.3. cat
<?php $smarty->assign('articleTitle', "Psychics predict world didn't end"); ?>
Шаблон:
{$articleTitle|cat:" yesterday."}
Результат обработки:
Psychics predict world didn't end yesterday.