Cool, looks like a bug to me.
The form helper has been revamped when dealing with dates. I've never tested
with a field that has an underscore. That seems to be the root of the
problem.
On Feb 10, 2008 4:44 AM, DlEast <[EMAIL PROTECTED]> wrote:
>
> Hello!
>
> I have had a site running the pre-beta of cake 1.2 and decided to make
> the change to beta 1.2. Everything works great with exception for my
> dates. I use the form helper to generate input fields.
>
> My current setup looks like this:
> SQL:
> `start_year` int(4) NOT NULL default '0',
> `end_year` int(4) default NULL,
> `start_month` int(2) NOT NULL default '0',
> `end_month` int(2) default NULL,
> View:
> <?php echo $form->year('Cv_education.start', null, null, null,
> array('tabindex' => "16")); ?>
> <?php echo $form->month('Cv_education.start', null, array('tabindex'
> => "18")); ?>
> <?php echo $form->year('Cv_education.end', null, null, null,
> array('tabindex' => "20")); ?>
> <?php echo $form->month('Cv_education.end', null, array('tabindex' =>
> "22")); ?>
>
> Previously cake saved the data as $this->data['Cv']['start_year'] but
> with the new version the data is saved as $this->data['Cv']['start']
> ['year'].
>
> This causes saving and loading issues. I have looked around on various
> pages and have only found the information that cakephp 1.2 beta is
> supposed to concatenated the array in to a single field but this isn't
> happening.
>
> Any help on how to get my site running again would be appreciated.
>
> // Daniel
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---