You don't call it directly. Just use Model::set().
On Jan 25, 10:14 am, chad <[EMAIL PROTECTED]> wrote:
> try this: $this->Section->deconstruct('publicationday', $this-
>
> >data['Section']['publicationday'])
>
> On Jan 25, 8:55 am, laeffe <[EMAIL PROTECTED]> wrote:
>
> > Hello all.
> > Just plowed thru a couple of posts discussing (and looked in the api)
> > this issue but I couldn't figure out to use Model->deconstruct().. I
> > thought I could use it like this
>
> > print_r($this->data);
> > $data = $this->Section->deconstruct("publicationday",
> > $this->data["Section"]);
>
> > var_dump($data);
>
> > But I got this:
> > Array
> > (
> > [Section] => Array
> > (
> > [id] =>
> > [publicationday] => Array
> > (
> > [month] => 01
> > [day] => 25
> > [year] => 2008
> > )
>
> > [version_id] =>
> > [folder] =>
> > [production] =>
> > )
>
> > )
>
> > NULL
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---