Re: [SMARTY] assign

From: Date: Thu, 08 Jan 2004 14:44:03 +0000
Subject: Re: [SMARTY] assign
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10791@lists.php.net to get a copy of this message
You can't assign to variables like that, the lefthand operator must be a simple variable name (not an array.) Maybe this is what you want: $smarty->assign('x', array('y' => 'z')); Then in the template, access 'z' like this: {$x.y} On Thu, 2004-01-08 at 08:35, Hodicska Gergely wrote: > Hi! > > $smarty->assign('x[y]', 'z'); > If make an assign like this, how can I access the created temp var in > the template file? > > Thx in advance, > Felho

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