Re: [SMARTY] assign

From: Date: Thu, 08 Jan 2004 15:20:49 +0000
Subject: Re: [SMARTY] assign
References: 1 2 3  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10795@lists.php.net to get a copy of this message
$smarty->assign('errors', $errors); $smarty->assign('paramName', $paramName); {section name=err loop=$errors.$paramName} {$errors.$paramName[err]} {/section} On Thu, 2004-01-08 at 09:05, Hodicska Gergely wrote: > Hi! > > And I have another problem related to this. > My framework validates the input parameters, and if any error occures I > add the error message to an array: > $errors[$paramName][] = $errorMsg; > > And I thought, that I could pass this array to smarty. > > But if the param name is something like this: 'x[y]', I can't access the > proper array element? > > Felho

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