Wednesday, June 29, 2011

how to get date select box to display a year range

Hi

I have a date selection box for DOB field(the default one provided by
cakephp) which has 3 combo boxes for date, month and year
respectively.

How do I get the year combo box to display a year range ie. I want it
to display the years between (current year - 2)and (current year - 5).

since i'm new to cakephp, i have no idea on where to specify this? do
I specify this rule in the model student.php as part of the var
$validate, where the dob field is validated?

thank you.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: