Hello.

i have a model that's using a simple 3-columns table

item_id
code
description

i want to obtain a select box that shows the fields "code" and
"description" concatenated.

right now i'm using a foreach loop

foreach ($items as $key => $item) $selectArray[$key] = $item["code"] .
" - " . $item["description"];

is there any way to do this directly in the "find" call?

--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to