Wednesday, November 28, 2012

Problem in I18n table

Hi.
I have model "I18n" which stores turkish and english language content of different fileds.
I have another model called "CompetitionAwards" which have title fields in turky and english language.
The title field is stored in i18n table in both language perfectly.
Now my problem is that when i fetch data from CompetitionAward data it is not fetch data from i18n table.
This same thing is work in CompetitionCat model.
i want somithing like :
CompetitionAwards['title']['tur'] = "xyz"
CompetitionAwards['title']['eng'] = "abc"

at present i just get
CompetitionAwards['title'] = "xyz"

tur and eng is coming from i18n table.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: