Thanks jitka,

In the aspect of using Cake to develop sites I'm a beginner. So in
that respect I don't know every method of every class in the api. I
did not have time for that.

>> You get the complete tree with all available translations.
>Sure. What you expected?

Sorry for that, as stated before I'm a beginner. I was just writing my
findings to help maybe some other Cake beginners. It was not ment for
the experienced Cake developers.

Keep up the good work!


On Jun 1, 5:55 pm, jitka <[EMAIL PROTECTED]> wrote:
> > When the model is as this:
> > ---
> > var $actsAs = array('Translate' => array(
> >                    'title'    => 'Translations',
> >                    'content' => 'TranslationsContent'));
> > ---
>
> > And the findAll in the controller is changed to:
> > ----
> > $this->set('news_articles', $this->NewsArticle->findAll('','','','','',
> > 2));
> > ----
> > ---> recursive option is set to 2
>
> > You get the complete tree with all available translations.
>
> Sure. What you expected?
>
> There are ways, off course. You can define
> var $actsAs = array('Translate' => array('title', 'content'));
> so no hasMany association will be created for translated fields.
>
> Otherwise see api, please. I can not believe that you are using new
> feature of development version and you don't know about ONLY 2 methods
> of TranslateBehavior, which are (public && ! (callback ||
> redefinedParent))...
>
> Talking about bindTranslation() and unbindTranslation() methods ;)


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