データ型
boolean
TODO
PHP側の世界との連携
定数を参照
{$smarty.const.MY_CONST_VAL}
{"MY_CONST_VAL"|constant}
クラス定数(Foo::CONST_VAL)を参照する場合は後者を使うとよい。
クラスのstaticメソッドを呼び出す
Smarty 2 では実現不可の模様。
Smarty 3 では http://www.smarty.net/docs/ja/advanced.features.static.classes.tpl 参照
オブジェクトのメソッドを呼び出す
http://www.smarty.net/docsv2/ja/advanced.features.tpl#advanced.features.objects
PHP
$smarty->assign('myobj', $myobj);
Smarty
{$myobj->meth1('foo',$bar)}