shepherdweb.com

Archive for January 7th, 2007

Using the CakePHP selectTag HtmlHelper

Sunday, January 7th, 2007

The 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 [...]

Bad Behavior has blocked 689 access attempts in the last 7 days.