|
|
@ -323,7 +323,9 @@ class ActiveField extends Component |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function fileInput($options = array()) |
|
|
|
public function fileInput($options = array()) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
if ($this->inputOptions !== array('class' => 'form-control')) { |
|
|
|
$options = array_merge($this->inputOptions, $options); |
|
|
|
$options = array_merge($this->inputOptions, $options); |
|
|
|
|
|
|
|
} |
|
|
|
$this->parts['{input}'] = Html::activeFileInput($this->model, $this->attribute, $options); |
|
|
|
$this->parts['{input}'] = Html::activeFileInput($this->model, $this->attribute, $options); |
|
|
|
return $this; |
|
|
|
return $this; |
|
|
|
} |
|
|
|
} |
|
|
|