Skip to content

Commit

Permalink
yii-way to get attribute value (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philosoft authored Dec 26, 2016
1 parent 8a46291 commit 2a92b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ace.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function init()
}

if (is_object($this->model)) {
$this->value = $this->model->{$this->attribute};
$this->value = Html::getAttributeValue($this->model, $this->attribute);
$this->name = Html::getInputName($this->model, $this->attribute);
}
$this->options['id'] .= '-ace';
Expand Down

0 comments on commit 2a92b65

Please sign in to comment.