Re: [SMARTY] plugins_dir in unstable release

From: Date: Tue, 04 Mar 2003 00:26:14 +0000
Subject: Re: [SMARTY] plugins_dir in unstable release
References: 1 2 3 4  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8358@lists.php.net to get a copy of this message
I make a test more complete, seems the problem is only with string_format index-test.php : $smarty->assign("varnum",1.23456); $smarty->assign("varstring","Prestataires informatiques de proximité et de haute qualité, spécialisés dans l'installation de réseaux d'entreprises sous Linux et d'outils de gestion orientés web, nous souhaitons vous apporter toutes les compétences informatiques qui vous sont nécessaires dans le cadre de la gestion de votre entreprise en Suisse Romande."); $smarty->display('index-test.tpl'); index-test.tpl {$varnum}<br> {$varnum|string_format:"%d"}<br> {$varnum|string_format:"%2f"}<br> {$varstring}<br> {$varstring|truncate:30}<br> {$varstring|capitalize}<br> Output: 1.23456 1.23456 1.23456 Prestataires informatiques de proximité et de haute qualité, spécialisés dans l'installation de réseaux d'entreprises sous Linux et d'outils de gestion orientés web, nous souhaitons vous apporter toutes les compétences informatiques qui vous sont nécessaires dans le cadre de la gestion de votre entreprise en Suisse Romande. Prestataires informatiques... Prestataires Informatiques De Proximité Et De Haute Qualité, Spécialisés Dans L'installation De Réseaux D'entreprises Sous Linux Et D'outils De Gestion Orientés Web, Nous Souhaitons Vous Apporter Toutes Les Compétences Informatiques Qui Vous Sont Nécessaires Dans Le Cadre De La Gestion De Votre Entreprise En Suisse Romande. Le mar 04/03/2003 à 00:43, Juzan Jean-Michel a écrit : > In the template_c I see > <td align=right><?php echo $this->_run_mod_handler('string_format', > true, > > $this->_tpl_vars['Machines'][$this->_sections['Machine']['index']]['QteActuel'], > '%d'); ?> > </td> > > but in the outpout <td align=right>26.5499999997</td> -- 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
« previous php.smarty.general (#8358) next »