my controller has 5 functions, each one with his own view.
3 of them are using the "main" layout, the other 2 the
"striptothebone" layout.

these last 2 views are giving me that problem.

the other 3 are working fine.

On 7 Lug, 16:44, Carlos Gonzalez Lavin <carloslavi...@gmail.com>
wrote:
> Sounds like a sanitation problem... Did you tell cake in any part of your
> application to escape into html entities? It seems to be screwing up with
> something and turning the "-" into the html entity &#45;
>
> 2009/7/7 Ernesto <e.fanz...@gmail.com>
>
>
>
>
>
> > hello.
>
> > here's my function
>
> > function addDate ($id) {
> >        $this->data["order_id"] = $id;
> >        $this->data["myDate"] = date("Y-m-d");
> >        pr ($this->data);
> >        $this->Order->save($this->data);
> > }
>
> > here's the pr output
>
> > Array(
> >        [order_id] = 1839
> >        [myDate] = 2009-07-07
> > )
>
> > and here's a portion the resultant Cake's SQL log
>
> > UPDATE `orders` SET `order_id` = 1839, `myDate` = '2009&#45;07&#45;07'
> > WHERE `orders`.`order_id` = 1839
>
> > please notice the "-" replaced by &#45;
>
> > due to this replacement MySQL isn't saving my changes.
>
> > i can't find where's the error.
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to