?
本文檔使用 PHP中文網(wǎng)手冊(cè) 發(fā)布
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)用過(guò)程中加載過(guò)濾器,你可以指定他們使用此變量,Smarty將自動(dòng)為你加載它們.該變量是一個(gè)聯(lián)合數(shù)組,在數(shù)組中鍵是過(guò)濾器類型,值是過(guò)濾器名字所組成的數(shù)組.例如:
$smarty->autoload_filters = array('pre' => array('trim', 'stamp'), 'output' => array('convert')); |