プラグインでカスタムなをつくる

渡すパラメータでつくるarrayをかえたりで、なんでもできる。

呼び側
{custom_hoge_option}
プラグイン
function smarty_function_custom_hoge_option($params, &$smarty){
	require_once $smarty->_get_plugin_filepath('function','html_options');
	$options = array(
		'1' => "いち",
		'2' => 'にぃ'
	);
	$html = "<select name="hogehoge">";
	$html .= smarty_function_html_options(array('options' => $options,'selected'   => "",'print_result' => false), $smarty);
	$html .= "</select>";
	return $html ;
}