get_template_vars
array
get_template_vars ( [string varname])
これは割り当てられた変数の値を返します。パラメータが与えられない場合は、
全ての割り当てられた変数の配列を返します。
例 1. get_template_vars
<?php // 割り当てられたテンプレート変数'foo'を取得 $foo = $smarty->get_template_vars('foo');
// 割り当てられたテンプレートの全ての変数を取得する $tpl_vars = $smarty->get_template_vars();
// 取得した内容を見る print_r($tpl_vars); ?>
|
|