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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Problem initialising i18n table using UUID in cake console
I created a database that uses UUIDs exclusively for all id fields. When I use cake i18n to initialise the table in the database to make various models translatable, it creates an id fiend as INT instead of CHAR(36), which breaks the translation behaviour. Am I doing something wrong, or is this a bug? I'm using CakePHP 2.0, cloned from git on 2011-10-22, MySQL 5.5.9, Apache 2.2.21, and PHP 5.3.6 under MAMP PRO 2.0.5, OS X 10.6.8. I'm keeping this message short, as this is my first post in this group. I've tried Googling both in this group and elsewhere, and couldn't find any more information on this issue — please forgive me if this post is in the wrong format or place. :) Kind regards, André Fischer -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem initialising i18n table using UUID in cake console
my guess: cake doesnt support uuids for those things on initialize but you could probably change the field manually to uuid afterwards then it should work again On 24 Okt., 09:59, André Fischer amfisc...@gmail.com wrote: I created a database that uses UUIDs exclusively for all id fields. When I use cake i18n to initialise the table in the database to make various models translatable, it creates an id fiend as INT instead of CHAR(36), which breaks the translation behaviour. Am I doing something wrong, or is this a bug? I'm using CakePHP 2.0, cloned from git on 2011-10-22, MySQL 5.5.9, Apache 2.2.21, and PHP 5.3.6 under MAMP PRO 2.0.5, OS X 10.6.8. I'm keeping this message short, as this is my first post in this group. I've tried Googling both in this group and elsewhere, and couldn't find any more information on this issue — please forgive me if this post is in the wrong format or place. :) Kind regards, André Fischer -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Problem initialising i18n table using UUID in cake console
Ah - if that works, that would be great. I'm new to Cake, and was leery of just diving in and doing things to the database behind Cake's back, as I've burnt myself in the past doing that to/with other Frameworks. :) Apart from that, I'm amazed how brilliant CakePHP2 is, and the more I dig in, the more I like it. On Oct 24, 11:26 am, euromark dereurom...@googlemail.com wrote: my guess: cake doesnt support uuids for those things on initialize but you could probably change the field manually to uuid afterwards then it should work again On 24 Okt., 09:59, André Fischer amfisc...@gmail.com wrote: I created a database that uses UUIDs exclusively for all id fields. When I use cake i18n to initialise the table in the database to make various models translatable, it creates an id fiend as INT instead of CHAR(36), which breaks the translation behaviour. Am I doing something wrong, or is this a bug? I'm using CakePHP 2.0, cloned from git on 2011-10-22, MySQL 5.5.9, Apache 2.2.21, and PHP 5.3.6 under MAMP PRO 2.0.5, OS X 10.6.8. I'm keeping this message short, as this is my first post in this group. I've tried Googling both in this group and elsewhere, and couldn't find any more information on this issue — please forgive me if this post is in the wrong format or place. :) Kind regards, André Fischer -- 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php