?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
If there are some filters that you wish to load on every template
invocation, you can specify them using this variable and Smarty will
automatically load them for you. The variable is an associative array
where keys are filter types and values are arrays of the filter
names. For example:
如果你希望在每次模板調(diào)用過程中加載過濾器,你可以指定他們使用此變量,Smarty將自動(dòng)為你加載它們.該變量是一個(gè)聯(lián)合數(shù)組,在數(shù)組中鍵是過濾器類型,值是過濾器名字所組成的數(shù)組.例如:
$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), 'output' => array('convert')); |