Hello,
I'm a cakephp newbie and i'm having some trouble with showing the
right datafield in a selectbox.
I'm having a table srt_location which has 2 fields: id & description.
This table has a relation with the table Location, which has a field
srt_locations_id. Now, when I use the selectTag in my add.thtml, the
select box shows the id, instead of the description. This is the code
I use:
<?php echo $html->selectTag('Location/srt_locations_id',
$SrtLocations, $html->tagValue('Location/srt_locations_id'), array(),
array(), true);?>
Does anyone know how I can display the description field in the
selectTag???
Thanks in advance..
Gerry.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---