symfony object_select_tag options
| June 27th, 2008I couldn’t find on symfony’s website what options you can pass to the object_select_tag function. It’s definition looks like this:
function object_select_tag($object, $method, $options = array(), $default_value = null)
and options can be:
- peer_method – peer method you want to use to fetch options. useful for sorting, limiting output etc.
- text_method – method used to display labels for your options
- include_custom – your customized option
- include_title – creates a title for the whole selection based on the name of the called method
- include_blank – adds blank (“”) option to your select tag