Re: [SMARTY-DEV] Bug Smarty-2.5.0RC2?

From: Date: Fri, 04 Apr 2003 10:06:29 +0000
Subject: Re: [SMARTY-DEV] Bug Smarty-2.5.0RC2?
References: 1  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1076@lists.php.net to get a copy of this message
On Fri, Apr 04, 2003 at 10:23:17AM +0200, Alberto Benati wrote: > I have a problem with Smarty-2.5.0RC2. > > $tpl = array('text1', text2', text3'); > > > $smarty->assign('tpl', $tpl); > > > index.tpl: > > {$tpl[1]} > {include file="$db:$tpl[1]"} backticks have been introduced in 2.5.0 to solve the ambiguitiy of $tpl[1] (does the "[1]" have to be taken literally or does it belong to $tpl?). so use: {include file="$db:$tpl[1]"} to glue then [1] to the $tpl. it is not a bug in 2.5.0. it is a little incompatibility, though. have fun messju > Output: > text1 > ERROR retreive template: Array[1]! > > > In Smarty-2.4.2 work well > Best regards > > > > -- > Smarty Development Mailing List (http://smarty.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Jurist: Legastheniker des Fortschritts. (NJW Bd. 54 2001

« previous php.smarty.dev (#1076) next »