public function glyphIcon($glyphIcon)
    {
        if (empty($this->parts['{input}'])) {
            throw new InternalErrorException('Firstly you must set field type!');
        }

        if (empty($glyphIcon) || !$this->_glyphIconAllowed) {
            $this->parts['{glyphIcon}'] = '';
            return $this;
        }

        $this->parts['{glyphIcon}'] = Html::tag('span', '', ['class' => "glyphicon glyphicon-$glyphIcon form-control-feedback"]);

        return $this;
    }
public function glyphIcon($glyphIcon)
    {
        if (empty($this->parts['{input}'])) {
            throw new InternalErrorException('Firstly you must set field type!');
        }

        if (empty($glyphIcon) || !$this->_glyphIconAllowed) {
            $this->parts['{glyphIcon}'] = '';
            return $this;
        }

        $this->parts['{glyphIcon}'] = Html::tag('span', '', ['class' => "glyphicon glyphicon-$glyphIcon form-control-feedback"]);

        return $this;
    }
public function glyphIcon ( $ glyphIcon ) { if ( empty ( $ this -> parts [ '{input}' ] ) ) { throw new InternalErrorException ( 'Firstly you must set field type!' ) ; } if ( empty ( $ glyphIcon ) || ! $ this -> _glyphIconAllowed ) { $ this -> parts [ '{glyphIcon}' ] = '' ; return $ this ; } $ this -> parts [ '{glyphIcon}' ] = Html :: tag ( 'span' , '' , [ 'class' => "glyphicon glyphicon-$glyphIcon form-control-feedback" ] ) ; return $ this ; }
Working only with inputs where type is text or password

You must set field first

@param $glyphIcon string Icon name
@return $this
@throws InternalErrorException
Working only with inputs where type is text or password