You can create a form element specifically for the year and set options for
$minYear and $maxYear. It's all in the book 8-)
http://book.cakephp.org/view/1416/year

On Mon, Jun 21, 2010 at 8:32 AM, Jonathon Musters <[email protected]>wrote:

> Google php date formats and replace it.
>
>
>
> On 6/21/10, Dilip Godhani <[email protected]> wrote:
> > Hello Friends
> >
> > i have a field in table it name is dob
> >
> >         <?php
> >
> e($form->input('dob',array('type'=>'date','class'=>'txtbox','style'=>'width:80px;','selected'=>strtotime($profile[0]['Profile']['dob']),'dateFormat'=>'DMY','label'=>false,'div'=>false)));?>
> >
> > when i use that name in ctp that time cake genarate drop down list in
> that
> > list year interval start from 1990 and end 2021.
> >
> > i want to  in 1990 to 1970 how i increase that.!
> > Thank
> > --
> > Dilip Godhani
> > Jr Software Developer, Entourage Solutions
> > e-mail: [email protected]
> >           [email protected]
> > Web.: www.entouragesolutions.com
> > m. 9913822582
> >
> > Check out the new CakePHP Questions site http://cakeqs.org and help
> others
> > with their CakePHP related questions.
> >
> > 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]<cake-php%[email protected]>For
> >  more options, visit this group at
> > http://groups.google.com/group/cake-php?hl=en
> >
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> 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]<cake-php%[email protected]>For
>  more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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

Reply via email to