> I wonder how you got this data into your database:
>
....
>
> INSERTed manually by yourself I suppose.
Yes, I did.
> There are some tings in your edit function I do not understand
> oleonav.
> In my edit function I just use $this->Post->save($this->data) and
> maybe setting the locale beforehand to tell cake which translation to
> edit.
My edit function parses the data in and out to a format I can use in
my view. I've you could tell me how to use the following standard data
structure to output forms tags and values created by the form helper,
I would be very thankful:
[Article] => Array
(
[id] => 1
[created_at] => 2007-07-04 15:33:56
[active] => yes
[locale] => eng
[title] => English title
[content] => English content
)
[TransTitle] => Array
(
[0] => Array
(
[id] => 93
[locale] => fra
[i18n_content_id] => 109
[model] => Article
[row_id] => 1
[field] => title
[Content] => Array
(
[id] => 109
[content] => Titre en francais
)
.....
[TransContent]...
....
Presenting a formtag for [Article][active] is simple: $form-
>input('Article.active'). How to output a tag for the French title is
a mystery to me.
$form->input('TransTitle.??????? ') ??
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---