Hello,
http://tempdocs.cakephp.org/#TOC150693 Explains the options and format
for the $form->year tag. 


year(string $fieldName, int $minYear, int $maxYear, mixed $selected,
array $attributes, boolean $showEmpty)
Creates a select element populated with the years from $minYear to
$maxYear, with the $selected year selected by default. HTML attributes
may be supplied in $attributes. If $showEmpty is false, the select will
not include an empty option.

On Thu, 2007-12-27 at 07:09 -0800, stefano wrote:

> Hello
> 
> i have a litle problem with FormHelper in cake1.2 :P
> 
> i have this in my view
>                       <tr>
>                               <td>Año publicación</td>
>                               <td><?= $form->year('year',1970,date('Y'),
> 2007,array('label'=>false)); ?></td>
>                       </tr>
> 
> but the html source is
> 
>                               <td><select name="data[Edition][year_year]" 
> label=""
> id="EditionYearYear">
> 
> :S
> 
> any idea ?
> 
> help pls :D
> 
> > 

Thanks,

Ronald Chaplin
                                        Owner - T73 Software and Designs

                                                                        
________________________________________________________________________

                                              http://t73-softdesign.com/

                                          We'll Make All Of Your Wildest

                                            e-Commerce Dreams Come True!

--~--~---------~--~----~------------~-------~--~----~
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