Re: [SMARTY] Réf. : [SMARTY] cons tant arguments
| From: | paul at dostuff dot net | Date: | Fri, 10 Jan 2003 17:06:26 +0000 |
| Subject: | Re: [SMARTY] Réf. : [SMARTY] cons tant arguments | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-7116@lists.php.net to get a copy of this message | ||
philippe.morange@ca-indosuez.com wrote:
Well I'd say that you can use #var# only when you use a config file at the beginning of your template... I may be wrong, but that's what I'd say. paul@dostuff.net le 10/01/2003 01:03:20 Pour : Smarty List <smarty-general@lists.php.net>Let's assume for a moment that I do indeed have a config file included and that I can reference that variable in all other situations normally. -- Paul Lockaby paul@dostuff.net http://www.dostuff.netcc : (ccc : Philippe MORANGE/EST/DOSI/BANQUE_INDOSUEZ/FR) Objet : [SMARTY] constant argumentsHow come this works: {include file=3D"common_header.tpl" pageTitle=3D"Search $siteName" pageHeader=3D"Search $siteName"} but this doesnt: {include file=3D"common_header.tpl" pageTitle=3D"Search #siteName#" pageHeader=3D"Search #siteName#"} Is it something I'm doing wrong? It seems like both should work.