2 ways: if you follow Cake conventions, you should rename your "codi" field to "name"
if not, in your Idioma model, add var $displayField = 'codi'; and that's done! On 14 mar, 17:03, "Alexandre" <[EMAIL PROTECTED]> wrote: > Hi, > i'm leaner of cakephp. > > I need to populate a select, and i do it > > $idiomas = $this->I18ntag->Idioma->generateList(); > > but i doesn't have the title field, and i see only the id fields, i > would like get de filed codi. > > CREATE TABLE `idiomas` ( > `id` int(3) NOT NULL auto_increment, > `codi` char(3) NOT NULL, > `descripcio` varchar(255) NOT NULL, > PRIMARY KEY (`id`), > UNIQUE KEY `codi` (`codi`) > ) ENGINE=MyISAM AUTO_INCREMENT=4 DEFAULT CHARSET=utf8 > AUTO_INCREMENT=4 ; > > How I can do it? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
