Re: [SMARTY] plugins_dir in unstable release
| From: | Juzan Jean-Michel | Date: | Tue, 04 Mar 2003 00:35:54 +0000 |
| Subject: | Re: [SMARTY] plugins_dir in unstable release | ||
| References: | 1 2 3 4 5 6 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8360@lists.php.net to get a copy of this message | ||
Le mar 04/03/2003 à 01:27, Paul Lockaby a écrit :
> Juzan Jean-Michel wrote:
> > I make a test more complete, seems the problem is only with
> > string_format
> >
>
> string_format, as released as a plugin in Smarty 4.2.3, doesn't work.
> Download the latest version from CVS and use that.
>
> ~Paul
Hi Paul,
Smarty 4.2.3 ?
I use the release get by cvs -d :pserver:cvsread@cvs.php.net:/repository
co smarty
smarty/libs/plugins/modifier.string_format.php
<?php
/*
* Smarty plugin
* -------------------------------------------------------------
* Type: modifier
* Name: string_format
* Purpose: format strings via sprintf
* -------------------------------------------------------------
*/
function smarty_modifier_string_format($string, $format)
{
return sprintf($string, $format);
}
/* vim: set expandtab: */
?>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
Jean-Michel Juzan jmjuzan@ecreasol.ch
Direction Informations & Technologies
eCreaSol - NetWork Creative Solutions SARL - http://www.ecreasol.ch/
PGP public keys server : http://www.keyserver.net
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc