Get Smarty

Donate

Paypal

Smarty Icon

You may use the Smarty logo according to the trademark notice.

Smarty Template Engine Smarty Template Engine

For sponsorship, advertising, news or other inquiries, contact us at:

Sites Using Smarty

Advertisement

Name

get_template_vars (Template-Variablen extrahieren)

array get_template_vars(string varname);

Gibt ein Array der zugewiesenen Template-Variablen zurück.

Example 13.17. get_template_vars (Template-Variablen extrahieren)


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

// alle zugewiesenen Template-Variablen extrahieren
$tpl_vars = $smarty->get_template_vars();

// Anschauen
print_r($tpl_vars);
?>


Comments
No comments for this page.

Advertisement