On Wed, Dec 31, 2008 at 11:15 AM, cguyer <[email protected]> wrote: > > I need to concatenate a datetime field from a view in a controller > before save (.i.e $this->data['Model']['datetime'][year],$this->data > ['Model']['datetime'][month], etc.). I believe I need to use $date= > $this->Model->set(??) which calls deconstruct but from the api im not > able to figure out the syntax to get it to work. Any help?
This doesn't work? $this->data['Model']['whatever'] = ... If you're not too concerned about relying on javascript, there are a lot of calendar widgets out there that'll format a date string into a single text field. The jQuery.ui.Calendar widget, for instance. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
