From ee46e61fc60f3fb2cce72df0faeb87148ea9d5d5 Mon Sep 17 00:00:00 2001 From: gerald Date: Sun, 4 Jul 2004 10:02:31 +0000 Subject: [PATCH] added - + Variables chargées depuis des fichiers de configuration @@ -12,62 +12,77 @@ variables de fichiers de configuration + +foo.conf + -foo.conf: - + + + index.tpl: - + + + +{#pageTitle#} + + + + + + + +
FirstLastAddress
+ + +]]> +
+ index.tpl: (alternate syntax) - + + + + +{$smarty.config.pageTitle} + + + + + + + +
FirstLastAddress
+ + +]]> +
+ +Ce qui donne en sortie, pour les deux exemples : + + + +C'est le mien + + + + + + + +
FirstLastAddress
+ + +]]> +
Les variables de fichier de configuration ne peuvent être utilisés tant diff --git a/docs/fr/designers/language-variables/language-variables-smarty.xml b/docs/fr/designers/language-variables/language-variables-smarty.xml index 70af91ab..dd6fadd3 100644 --- a/docs/fr/designers/language-variables/language-variables-smarty.xml +++ b/docs/fr/designers/language-variables/language-variables-smarty.xml @@ -1,6 +1,6 @@ - + Variable réservée {$smarty} @@ -18,6 +18,7 @@ Afficher des variables de requête + +{$smarty.request.utilisateur} +]]> + @@ -53,8 +56,11 @@ utilisation de {$smarty.now} + +{$smarty.now|date_format:"%d-%m-%Y %H:%M:%S"} +]]> + @@ -66,7 +72,10 @@ Utiliser {$smarty.const} -{$smarty.const._MA_CONSTANTE_} + +