Hello all,
I am using the object_for_select helper to display options in my drop-
down list.
<?php echo select_tag(
'items',
objects_for_select(
$list,
'getItemId',
'getItemName'
)
) ?>
Now the list is getting the values from the the object $list. But in
this list, I want a string like 'Select an item...' to be displayed as
the first option. Should I create my own helper for such a task? or is
there some other way?
Thanks and Regards
Vikram
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---