Wednesday, December 31, 2008

Datetime Concatenate in Controller

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?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: