vendor/yiisoft/yii2-jui/src/InputWidget.php
/**
     * Initializes the widget.
     * If you override this method, make sure you call the parent implementation first.
     */
Initializes the widget.
If you override this method, make sure you call the parent implementation first.
Initializes the widget . If you override this method make sure you call the parent implementation first .
public function init()
    {
        if ($this->hasModel() && !isset($this->options['id'])) {
            $this->options['id'] = Html::getInputId($this->model, $this->attribute);
        }
        parent::init();
    }
public function init ( ) { if ( $ this -> hasModel ( ) && ! isset ( $ this -> options [ 'id' ] ) ) { $ this -> options [ 'id' ] = Html :: getInputId ( $ this -> model , $ this -> attribute ) ; } parent :: init ( ) ; }
Initializes the widget.
Initializes the widget .