Baked in my current app, the field called "date" results in the
following array:

Array
(
    [Ride] => Array
        (
            [id] =>
            [datetime] => Array
                (
                    [day] =>
                    [month] =>
                    [year] =>
                )
            [event_date] => Array
                (
                    [day] =>
                    [month] =>
                    [year] =>
                )
        )
    [date] => Array
        (
            [date] => Array
                (
                    [day] =>
                    [month] =>
                    [year] =>
                )

        )
)

as you can see, datetime and event_date etc (added for debugging) dont
get mixed up here

the form is as simple as possible:

                echo $this->Form->input('date');
                echo $this->Form->input('datetime');
                echo $this->Form->input('event_date');

but even modifying does not change anything:

                echo $this->Form->input('date', array
('type'=>'date','dateFormat'=>'DMY','empty'=>'--'));
                echo $this->Form->input('datetime', array
('type'=>'date','dateFormat'=>'DMY','empty'=>'--'));
                echo $this->Form->input('event_date', array
('type'=>'date','dateFormat'=>'DMY','empty'=>'--'));

and the weirdest thing:
creating a totally new app on the same level as my current up (using
the same 1.3 HEAD core files) with the same view, controller and model
does it correctly:

Array
(
    [Ride] => Array
        (
            [date] => Array
                (
                    [day] =>
                    [month] =>
                    [year] =>
                )
                ....
        )

)

there is no beforeFilter() in the controller doing anything out of the
ordinary
no beforeValidate() in the model

the debug output above is from right at the beginning of beforeFilter
() in the app_controller
so there is not much that could have happened before - except for the
bootstrapping process
which does not do anything else than in the new freshly created
project.

so how can this happen? what did i miss?...
anybody an idea where i could take a look at?
i am running out of ideas - thank you

the alternative would be to just rename the field
but there has to be a logical explanation for this :) somwhere
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