Friday, January 2, 2009

Re: Datetime Concatenate in Controller

If you're looking to convert an array into a string:

http://www.php.net/implode



On Fri, Jan 2, 2009 at 9:31 AM, cguyer <colbyguyer@gmail.com> wrote:

I'm not trying to change the value, im simple trying to pull it into a
string so i can use it as a condition in an sql find.

On Jan 1, 10:25 am, WebbedIT <p...@webbedit.co.uk> wrote:
> As you are trying to change the value of a field before it is saved
> then the simplest way is to use PHP to directly manipulate the field
> value in the $this->data['Model'] array.  That way the model's save
> function will deal with the save automagically.
>
> Are you using the form helper to produce the date field in the form?
> If so, cake should worry about the formatting on your behalf.




--~--~---------~--~----~------------~-------~--~----~
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: