Thanks to both of you, you've been of great help! Really appreciate it! On Apr 27, 10:39 am, WebbedIT <[email protected]> wrote: > If concatenating or calculating fields etc. you will then need to use > Set::combine to reformat the array so the form helper can use it. > > $data = $this->Artist->find( > 'all', > array( > 'fields' => array( > "concat(Artist.first_name,' ',Artist.last_name) as name" > ) > ) > ); > > Would then need the following to set the array in the right format: > > $this->set('artists', Set::combine($data, '{n}.Artist.id', '{n}. > 0.name')); > > HTH > > Paul > > Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with > their CakePHP related questions. > > You received this message because you are subscribed to the Google Groups > "CakePHP" 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 > athttp://groups.google.com/group/cake-php?hl=en
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" 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
