The form does not contain any hidden fields for "mdate". I just want the controller to be able to supply the model with the mdate value instead of the user input. Hence the mdate value is already empty because there is no any value for it in the form. I think that Cake applying an automated data (datetime) supplying for fields of specific name such as created if there is no value submitted from the client.
I need to know the way to overcome this problem, let us talk in general conditions as following: "I have field named with "anyname" and I want the controller to inject its value instead of user's input from the form" On Jul 22, 5:30 pm, LunarDraco <[email protected]> wrote: > You haven't shown us the structure of $this->data for all we know the > mdate field does exist and is an array of datetime format which means > its not empty even though the values of each name value pair in the > array maybe Empty. > > Also what does your form create code look like. Do you have a hidden > input field for the mdate. Are you creating the form with the > formHelper. > > Just curious but why did you add this action to pages instead of a > contact controller or element? 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
