New plugin (money_format) for Smarty

From: Date: Wed, 20 Nov 2002 10:48:19 +0000
Subject: New plugin (money_format) for Smarty
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6480@lists.php.net to get a copy of this message
Hi, I have created a new plugin called: modifier.money_format.php for currency formating. The money_format() is a wrapper for strfmon() C function, but money_format() is available in PHP 4.3 only. Usage: {$x|money_format:"%i"} (international format) => USD 12,333.34 {$x|money_format:"%n":"pl"} (local country format for Poland) => 12.333,34 zl On a page http://www.klaban.torun.pl/patches/smarty/ you can find mentioned plugin, as well as the previous (advertised on smarty-dev): function.eval_php.php - assign result of PHP code execution to a smarty variable function.assign_php.php - assign PHP value to a smarty variable modifier.date_format.php (not new plugin, only patched for localization) function.html_select_date.php (new 'locale_time' parameter) function.html_radio.php - generate radio list function.html_checkbox.php - generated checkbo list function.append.php - calls $smarty->append() on a given variable function.strcat.php - adds new value to the end of the string variable More info you can find in Readme file on the web page. Best regards, -- Piotr Klaban

« previous php.smarty.general (#6480) next »