And I dont get anything saved in the i18n table
Attachment Model:
var $actsAs = array('Tree',
'Translate' => array(
'title' => 'titleTranslation',
'body' => 'bodyTranslation'
)
);
The View and Controller are just the classic once
On Wed, Nov 23, 2011 at 1:20 PM, msujit <shoeseat@gmail.com> wrote:
> Hai,
> Did you managed to solve it?I am also having exact proble.I am
> trying to save image string to i18n table but it's not saving but
> other fileds like title,content are saved in i18n.
>
>
> On Nov 23, 2:05 pm, "Constantin.FF" <constantin...@gmail.com> wrote:
>> My Attachment model actAs Translate to be able to translate the image
>> titles, I get the attachment saved in it's attachments table, but
>> nothing goes to the i18n table. This is the beforeSave model data:
>>
>> Array
>> (
>> [Attachment] => Array
>> (
>> [parent_id] => 0
>> [type] => Attachment
>> [status] => 1
>> [promoted] => 0
>> [attachment] => Array
>> (
>> [name] => bla-bla-picture.gif
>> [type] => image/gif
>> [tmp_name] => /tmp/phpVTolMj
>> [error] => 0
>> [size] => 26886
>> )
>>
>> [updated] => 2011-11-22 18:20:49
>> [created] => 2011-11-22 18:20:49
>> [lft] => 33
>> [rght] => 34
>> [body] => bla-bla-picture.gif
>> [title] => Bla Bla Picture
>> [mime_type] => image/gif
>> [attachmentSize] => 26886
>> [path] => /img/attachments/
>> )
>>
>> )
>>
>> How to debug and see what is the data before inserting in the model
>> and i18n tables? Any ideas for the error?
>
> --
> Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
>
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment