- Ignoring
@
before modifier. Modifier is always applied to the variable,{$array|@count}
,{$array|count}
,count($array)
are same. - Unsupported Smarty3
{foreach}
properties are @index, @iteration, @first, @last, @show, @total yet.
Accessor | Smarty2 | Smarty3 |
---|---|---|
$smarty.get |
yes | yes |
$smarty.post |
yes | yes |
$smarty.cookie |
yes | yes |
$smarty.request |
yes | yes |
$smarty.server |
yes | yes |
$smarty.env |
yes | yes |
$smarty.session |
yes | yes |
$smarty.const |
yes | yes |
$smarty.ldelim |
yes | yes |
$smarty.rdelim |
yes | yes |
$smarty.block |
- | no |
$smarty.section * |
no | no |
$smarty.capture |
yes | yes |
$smarty.foreach |
yes | - |
$smarty.template * |
no | no |
$smarty.version * |
no | no |
$smarty.current_dir |
- | no |
$smarty.template_object |
- | no |
$smarty.config * |
no | no |
Tag | Smarty2 | Smarty3 |
---|---|---|
assign |
yes | yes without scope |
capture |
yes | yes |
foreach |
yes | yes |
section * |
no | no |
include |
yes | yes |
include_php ** |
no | no |
strip |
yes | yes |
if |
yes | yes |
literal |
yes | yes |
ldelim ,rdelim |
yes | yes |
while |
- | yes |
extends ,block |
- | yes |
insert ** |
no | no |
html_checkboxes * |
yes | yes |
html_image * |
yes | yes |
html_options * |
yes | yes |
html_radios * |
yes | yes |
html_select_date * |
yes | yes |
html_select_time * |
yes | yes |
html_table * |
yes | yes |
mailto * |
yes | yes |
math * |
yes | - |
textformat * |
yes | yes |
eval |
no | no |
fetch * |
yes | yes |
counter * |
yes | yes |
cycle * |
no | no |
*
- todo
**
- newer