smarty @Wiki

get_template_vars()

最終更新:

匿名ユーザー

- view
だれでも歓迎! 編集

get_template_vars()


array get_template_vars ( [string varname])

これは割り当てられた変数の値を返します。
パラメータが与えられない場合は、 全ての割り当てられた変数の配列を返します。

例 1. get_template_vars

<?php
$foo = $smarty->get_template_vars('foo');

$tpl_vars = $smarty->get_template_vars();

print_r($tpl_vars);
?>
ウィキ募集バナー