Re: [SMARTY] How to use popup function in section loop?

From: Date: Mon, 23 Jun 2003 13:09:30 +0000
Subject: Re: [SMARTY] How to use popup function in section loop?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-9754@lists.php.net to get a copy of this message
You could use: {section name="sparepartsInfo" loop=$partNoArray} {assign var=temp_value value=$spoPartTSLArray[sparepartsInfo]} <a {popup caption="TSL List" text="$temp_value"}> {$partNoArray[sparepartsInfo]}</a> {/section} Although I don't know if $spoPartTSLArray[sparepartsInfo] is correct, I would rather use $spoPartTSLArray.sparepartsInfo Am Montag, 23.06.03 um 09:14 Uhr schrieb Larry_Li@amat.com:
{section name="sparepartsInfo" loop=$partNoArray} <a {popup caption="TSL List" text="$spoPartTSLArray[sparepartsInfo]"}> {$partNoArray[sparepartsInfo]}</a> {/section} Get error message: Warning: Smarty error: overlib: attribute 'text' or 'inarray' or 'function' required in d:\php\includes\Smarty.class.php on line 553 Seems text in popup doesn't support section array variable. If I replaced array variable with a simple one, it works great. But I do need an array variable in text. Any idea? Thanks a lot, Larry -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Schöne Grüße aus Wunstorf
Gabriel Birke -- KONTOR4_Neue Medien Nelkenstrasse 3 31515 Wunstorf 05031-955234 05031-955231 mailto:birke@kontor4.de http://www.kontor4.de

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