It worked fine! :)
On Jun 29, 4:05 pm, Jeremy Burns | Class Outfit
<jeremybu...@classoutfit.com> wrote:
> Try this in your form:
>
> echo $this->Form->input(
> 'dob',
> array(
> 'label' => 'Date of Birth',
> 'empty' => true,
> 'timeFormat' => '',
> 'minYear' => (
> date('Y') - 5
> ),
> 'maxYear' => (
> date('Y') - 3
> )
> )
> );
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 29 Jun 2011, at 11:59, varai wrote:
>
>
>
> > 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 Tutorialshttp://tv.cakephp.org
> > Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 athttp://groups.google.com/group/cake-php
--
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:
Post a Comment