mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
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:
parent
b950e735ff
commit
9bec5d8ebb
1 changed files with 1 additions and 0 deletions
|
@ -653,6 +653,7 @@ class HtmlHelper extends AppHelper {
|
|||
* @return string Formatted SELECT element
|
||||
*/
|
||||
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);
|
||||
if ($this->tagIsInvalid()) {
|
||||
if (isset($selectAttr['class']) && trim($selectAttr['class']) != "") {
|
||||
|
|
Loading…
Reference in a new issue