AW: [SMARTY] smarty variables used in {include...}

From: Date: Wed, 19 Feb 2003 17:14:18 +0000
Subject: AW: [SMARTY] smarty variables used in {include...}
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7905@lists.php.net to get a copy of this message
> A patch has been committed to CVS to fix this. > > Now only "$foo" and "$foo[...]" syntax is recognized in > quoted strings. After this change, I have problems with: -------------------8<----------------------- {capture name="nosec"} {lang NO_SECURE_CONNECTION} {/capture} {include file="file:../../_shared/_templates/notice.tpl" text="$smarty.capture.nosec"} -------------------8<----------------------- I mean, I changed it now to: {include file="file:../../_shared/_templates/notice.tpl" text=$smarty.capture.nosec} But wouldn't that make problems with older versions? Greets, Joscha > > Monte > > On Tue, 2003-02-18 at 20:56, Tom Rochester wrote: > > Hi, > > > > I was previously using Smarty 4.3.0 and have a standard > 'page' that I > > want to include different modules in, which previously > worked like this: > > > > {include file="$inline.inline.tpl"} > > > > when I upgrade to the latest version of Smarty 4.4.* I get > the following > > error: > > > > > > *Warning*: Smarty error: unable to read template resource: > ".inline.tpl" > > in */var/www/Smarty/Smarty.class.php* on line *999* > > > > (inline _is_ being assigned) > > > > I obviously cannot use variables in this manner anymore. Is > there any > > way of fixing this problem without rewriting all of my scripts? > > > > Thanks, > > > > Tom > -- > Monte Ohrt <monte@ispi.net> > > > -- > Smarty General Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

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