What is Smarty?
Why use it?
Use Cases and Work Flow
Syntax Comparison
Template Inheritance
Best Practices
Crash Course
You may use the Smarty logo according to the trademark notice.
For sponsorship, advertising, news or other inquiries, contact us at:
get_config_vars
array get_config_vars(string varname);
Restituisce il valore della variabile di configurazione data, se è stata caricata. Se non viene passato un parametro viene restituito un array di tutte le variabili di configurazione caricate.
Example 13.15. get_config_vars
<?php // recupero la variabile di configurazione del template 'foo' $foo = $smarty->get_config_vars('foo'); // recupero tutte le variabili di configurazione caricate $config_vars = $smarty->get_config_vars(); // diamo un'occhiata print_r($config_vars); ?>