Thanks Nate, I was tempted to do that but was trying not to duplicate
cake functionality if it was already there... thanks a bunch!

Grant

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of nate
Sent: Saturday, December 09, 2006 11:56 AM
To: Cake PHP
Subject: Re: generateDate year setting


There's probably a simpler way to do this, but:

$html->selectTag('My/date', array_keys(array_fill(intval(date('Y')),
15, '')))




--~--~---------~--~----~------------~-------~--~----~
 You received this message because you are subscribed to the Google Groups 
"Cake PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to