Deprecating HtmlHelper::selectTag()

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4558 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-02-26 13:44:04 +00:00
parent b950e735ff
commit 9bec5d8ebb

View file

@ -653,6 +653,7 @@ class HtmlHelper extends AppHelper {
* @return string Formatted SELECT element * @return string Formatted SELECT element
*/ */
function selectTag($fieldName, $optionElements, $selected = array(), $selectAttr = array(), $optionAttr = array(), $showEmpty = true) { function selectTag($fieldName, $optionElements, $selected = array(), $selectAttr = array(), $optionAttr = array(), $showEmpty = true) {
trigger_error(__('(HtmlHelper::selectTag) Deprecated: Use FormHelper::select instead'), E_USER_WARNING);
$this->setFormTag($fieldName); $this->setFormTag($fieldName);
if ($this->tagIsInvalid()) { if ($this->tagIsInvalid()) {
if (isset($selectAttr['class']) && trim($selectAttr['class']) != "") { if (isset($selectAttr['class']) && trim($selectAttr['class']) != "") {