1. Christoffer Niska
  2. yii-bootstrap
  3. Issues
Issue #54 resolved

Improve "passwordField" function

Ivaylo Ushev
created an issue

Add "getPrepend" and "getAppend" to "passwordField" function in BootInputHorizontal like this: {{{

!php

protected function passwordField() { echo $this->getLabel(); echo '<div class="controls">'; echo $this->getPrepend(); echo $this->form->passwordField($this->model, $this->attribute, $this->htmlOptions); echo $this->getAppend(); echo $this->getError().$this->getHint(); echo '</div>'; } }}}

and in BootInputVertical like this: {{{

!php

protected function passwordField() { echo $this->getLabel(); echo $this->getPrepend(); echo $this->form->passwordField($this->model, $this->attribute, $this->htmlOptions); echo $this->getAppend(); echo $this->getError().$this->getHint(); } }}}

Comments (2)

  1. Log in to comment