smarty template engine
Sunday, September 07, 2008  
download | documentation | faq | forum | mailing lists | changelog | contribs 


search for in the  


$autoload_filters

Si existe algun filtro que usted desea cargar en cada llamada de template, usted puede especificar cual variable usar y el Smarty ira automáticamente a cargarlos para usted. La variable es un arreglo asociativo donde las llaves son tipos de filtro y los valores son arreglos de nombres de filtros. Por ejemplo:

<?php
$smarty
->autoload_filters = array('pre' => array('trim''stamp'),
                                  
'output' => array('convert'));
?>

Ver también register_outputfilter(), register_prefilter(), register_postfilter() y load_filter()




 

credits 

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

All rights reserved.