Thanks [EMAIL PROTECTED] and Tarique, the probleme commes exactly from here, 
but i
do'nt understand why we should use the model name in here.

On Mar 31, 1:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Sergei,
>
> Have a look at this 
> articlehttp://rossoft.wordpress.com/2006/08/23/working-with-habtm-associations/
>
> The functions in there make working with HABTM a bit easier.
> The trick is getting the data structure correct.  Your's looks a bit
> wrong from what I can see.
> I think your tag array should look like
>
>     [YpTag] => Array
>         (
>             [YpTag] => Array
>                 (
>                     [0] => 1
>                     [1] => 2
>                     [2] => 3
>                 )
>         )
>
> Here's the excerpt from the manual that explains it.
> ===
> In order for a call to $this->Post->save() in the controller to save
> the links between this new Post and its associated Tags, the name of
> the field must be in the form "Tag/Tag" (the rendered name attribute
> would look something like 'data[ModelName][ModelName][]').
> ===


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

Reply via email to