Re: Cake and JSON.

2007-12-10 Thread hydra12
:-) I'm glad it worked! On Dec 10, 11:35 am, Marcos Hernández <[EMAIL PROTECTED]> wrote: > Oh, man, you're my savior!!! It works great without touching anything!! > Thanks a lot!! > hydra12 escribió:Try this (works in 1.2): First, put all of your data into a > variable, for instance if your mo

Re: Cake and JSON.

2007-12-10 Thread Marcos Hernández
Oh, man, you're my savior!!! It works great without touching anything!! Thanks a lot!! hydra12 escribió: Try this (works in 1.2): First, put all of your data into a variable, for instance if your model is called items: $items = $this->Item->findAll(); $timestamp = 1193692111; // put your

Re: Cake and JSON.

2007-12-10 Thread hydra12
Try this (works in 1.2): First, put all of your data into a variable, for instance if your model is called items: $items = $this->Item->findAll(); $timestamp = 1193692111; // put your timestamp here $itemArray = Set::extract($items, '{n}.Item'); $this->set('items','{"timestamp":'. $timestamp.',"