use of Html::tag function has arguments transposed

Issue #1 closed
Former user created an issue
protected function renderTitle() {
        if ($this->menuTitle) {
            echo Html::tag($this->tagName, array('class' => 'tile-slide-menu-title'), $this->menuTitle);
        }
    }

Html::tag call needs args 2 & 3 transposed. in BaseHtml::tag the static function is... public static function tag($name, $content = '', $options = [])

Comments (2)

  1. Artur Oliveira repo owner

    There was an error while porting the extension from Yii1 to Yii2. This is the correct way in Yii1 in Yii2 it's the other way around.

  2. Log in to comment