you are so right just found the problem, i guess: I have a file date.php with a class "Date" in the models folder this model works, though (thats why i never though about this model name resulting in any upcoming trouble) its just the current model and the post functionatily which screws up...
does PHP5.3 or even 6 finally support classes like Date etc (case sensitive compared to lowercase functions?) On 17 Jan., 20:11, John Andersen <[email protected]> wrote: > Your issue may be related to the one that was discussed > in:http://groups.google.com/group/cake-php/browse_thread/thread/759c93f0... > > There it was a table named "data" that gave problems! > Your using of "date" may give issues of the same kind - kind of > reserved word :) > Enjoy, > John > > On Jan 16, 6:02 pm, euromark <[email protected]> wrote: > > > 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
