get_template_vars <methodsynopsis> <type>array</type><methodname>get_template_vars</methodname> <methodparam choice="opt"><type>string</type><parameter>varname</parameter></methodparam> </methodsynopsis> <para> Возвращает значение переменной. Если аргумент не передан, будет возвращен массив всех назначенными переменными. </para> <example> <title>get_template_vars get_template_vars('foo'); // получаем все назначенные переменные шаблона $tpl_vars = $smarty->get_template_vars(); // поглядим, что из этого вышло print_r($tpl_vars); ?> ]]>