Re: [SMARTY] plugins_dir in unstable release
| From: | Juzan Jean-Michel | Date: | Tue, 04 Mar 2003 00:51:03 +0000 |
| Subject: | Re: [SMARTY] plugins_dir in unstable release | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8364@lists.php.net to get a copy of this message | ||
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
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc