Using the CakePHP selectTag HtmlHelper
Sunday, January 7th, 2007The use of the selectTag HtmlHelper seems to be confusing to a lot of people (judging from the popularity of questions about it in the CakePHP Google Group). Hopefully I can clear up a few things about it.
Parameters
selectTag ($fieldName, $optionElements, $selected=null, $selectAttr=array(), $optionAttr=null, $showEmpty=true, $return=false)
$fieldName will typically be the name of your model in [...]