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:
clear_all_assign() — Efface les valeurs de toutes les variables assignées
void clear_all_assign();
Example 13.5. Exemple avec clear_all_assign()
<?php // passe des paires nom/valeur $smarty->assign('Name', 'Fred'); $smarty->assign('Address', $address); // affichera print_r( $smarty->get_template_vars() ); // efface toutes les variables assignées $smarty->clear_all_assign(); // n'affichera rien print_r( $smarty->get_template_vars() ); ?>
Voir aussi
clear_assign()
,
clear_config()
,
get_template_vars()
,
assign()
et
append()
.