2.4.1: {assign} in tenmplates with arrays

From: Date: Fri, 07 Feb 2003 15:05:27 +0000
Subject: 2.4.1: {assign} in tenmplates with arrays
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7570@lists.php.net to get a copy of this message
I'm running current CVS (as of this morning). I'm fairly sure this used to work pre-2.4 but correct me if I'm wrong: $smarty->assign('test', array('name' => 'Mark')); ... and in template: {assign var=subject value="Hello, $test.name, from Joe"} {$subject} .. currently prints Hello, Array.name, from Joe .. where I obviously wanted Hello, Mark, from Joe I can work around this with {assign var=temp value=$test.name} {assign var=subject value="Hello, $temp, from Joe"} {$subject} .. but you try explaining that to a template designer :-) -- Mark Rogers, Quarella Ltd --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 28/01/2003

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