smarty template engine
Monday, October 13, 2008  
download | documentation | faq | forum | mailing lists | changelog | contribs 


search for in the  


clear_all_assign()

clear_all_assign() -- >limpia el valor de todas las variables asignadas

Descripción

void clear_all_assign ( void )

Ejemplo 13-1. clear_all_assign()

<?php
// passing name/value pairs
$smarty->assign('Name''Fred');
$smarty->assign('Address'$address);

// will output above
print_r$smarty->get_template_vars() );

// clear all assigned variables
$smarty->clear_all_assign();

// will output nothing
print_r$smarty->get_template_vars() );
?>

Ver también clear_assign(), clear_config(), assign() y append()




 

credits 

Smarty Copyright © 2002-2008
New Digital Group, Inc.

All rights reserved.