echo $form->dateTime(
'fieldname',
'DMY',
'NONE',
null,
array(
'minYear' => 1983,
'maxYear' => date('Y')
),
false
)
On 31 mar, 18:00, kurious oranj <[email protected]> wrote:
> Hi,
>
> I'm quite new to CakePHP and need to have a SELECT with options for
> each year from 1983 to the current year. I can certainly write the
> javascript to do the loop from 1983 to current year, but what's the
> best way to call that javascript to populate the SELECT? I just need
> the general mechanism.
>
> Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
-~----------~----~----~----~------~----~------~--~---