Re: [SMARTY] plugins_dir in unstable release

From: Date: Tue, 04 Mar 2003 02:01:19 +0000
Subject: Re: [SMARTY] plugins_dir in unstable release
References: 1 2 3 4 5 6 7 8 9 10  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8366@lists.php.net to get a copy of this message
That is fixed already in CVS. I really need to get 2.5.0RC1 out, but I'm super pressed for time. This week hopefully. Monte Juzan Jean-Michel wrote:
I find the problem ! Is this in the plugin return sprintf($string, $format); correct syntax is return sprintf($format, $string); Le mar 04/03/2003 à 01:51, Juzan Jean-Michel a écrit :
I don't think there is a problem with my progam The full index-test.php <?php define ('SMARTY_DIR','/usr/local/phptools/smarty/libs/'); require (SMARTY_DIR.'Smarty.class.php'); $smarty = new Smarty; $smarty->template_dir = ('/usr/local/phptools/smarty/ecreasol-templates'); $smarty->compile_dir = ('/usr/local/phptools/smarty/templates_c'); $smarty->plugins_dir = array ('/usr/local/phptools/smarty/ecreasol-plugins','/usr/local/phptools/smarty/libs/plugins'); // I also try this //$smarty->plugins_dir = array ('/usr/local/phptools/smarty/ecreasol-plugins','/usr/local/phptools/smarty/libs/plugins'); $smarty->config_dir = ('/usr/local/phptools/smarty/ecreasol-configs'); $smarty->cache_dir = ('/usr/local/phptools/smarty/cache'); $smarty->debugging = true; $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'); ?> Le mar 04/03/2003 à 01:39, Paul Lockaby a écrit :
Juzan Jean-Michel wrote:
     
Hi Paul, Smarty 4.2.3 ?
       
Hi, I'm dumb. 2.4.2.
     
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); }
       
Yeah, that's how it's supposed to look. Perhaps there is some other problem with your program. ~Paul -- 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

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