SEARCH

このマニュアルはSmartyのものです。セキュリティなどの問題でRCMSでは利用できないものもありますので、ご注意ください。
load_filter()

load_filter()

load_filter() -- フィルタプラグインを読み込みます。

説明

void load_filter ( string type, string name)

第1パラメータには、読み込むフィルタの種類を prepost あるいは output のいずれかで指定します。第2パラメータにはフィルタプラグインの名前を指定します。(例: 'trim')

例 13-1. フィルタプラグインを読み込む

<?php

// 'trim'というプリフィルタを読み込みます
$smarty->load_filter('pre''trim');

// 'datefooter'という他のプリフィルタを読み込みます
$smarty->load_filter('pre''datefooter');

// 'compress'というアウトプットフィルタを読み込みます
$smarty->load_filter('output''compress');

?>

register_prefilter()register_postfilter()register_outputfilter()$autoload_filters および 拡張機能 も参照してください。

SEARCH