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() — очищает список назначенных переменных
void clear_all_assign();
Example 13.5. clear_all_assign()
<?php // передача пар ключ / значение $smarty->assign('Name', 'Fred'); $smarty->assign('Address', $address); // выведет только что назначенные переменные print_r($smarty->get_template_vars()); // очищаем список назначенных переменных $smarty->clear_all_assign(); // не выведет ничего print_r($smarty->get_template_vars()); ?>
См. также clear_assign(), clear_config(), assign() и append()