Skip to content

Commit

Permalink
yii-way to get value of a model (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Philosoft authored Dec 26, 2016
1 parent b4656d7 commit 09557ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Jsoneditor.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function init()
$this->options['style'] = 'height: 250px;';
}
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);
}
if (empty($this->value)) {
Expand Down

0 comments on commit 09557ad

Please sign in to comment.