html_select_date and foreach

From: Date: Sun, 30 Mar 2003 06:06:52 +0000
Subject: html_select_date and foreach
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-8991@lists.php.net to get a copy of this message
ok I've run into a problem regarding html_select_date within a foreach loop (same problem within a section). Anyway here's the problem. {foreach from=$assoc item=info} {html_select_date time=$info.startYear-00-00 start_year="-45" display_days=false display_months=false} {/section} that's just the problem segment. I actually went in and had the $time print out within the function.html_select_date.php and the output is Array.startYear-00-00 so you can see that the actual value is not being passed. I've tried every variation I can think of from quoting the string to trying to concatenate it within the html_select_date. Anyone have this problem before or can think of a way out of it. update: I have been able to bypass the problem by using assign within the template but that seems to be such a kludge. I'm working with some pretty extensive forms that will have up to 10 date fields on the page so I'd like to find a better way to handle it. Chris N

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