@@ -15,7 +15,7 @@ use rkit\fileapi\Widget as FileApi;
15
15
…
16
16
<?= $form->field($model, $attribute, ['template' => "{label}\n{error}\n{input}\n{hint}"])
17
17
->widget(FileApi::className(), [
18
- 'template' => '@app/modules/admin/views/shared/files/image- template',
18
+ 'template' => '@app/path/to/ template',
19
19
'callbacks' => [
20
20
'select' => new JsExpression('function (evt, ui) {
21
21
…
@@ -47,7 +47,7 @@ use rkit\fileapi\Widget as FileApi;
47
47
…
48
48
<?= $form->field($model, $attribute, ['template' => "{label}\n{error}\n{input}\n{hint}"])
49
49
->widget(FileApi::className(), [
50
- 'template' => '@app/modules/admin/views/shared/files/image- template',
50
+ 'template' => '@app/path/to/ template',
51
51
'callbacks' => [
52
52
'select' => new JsExpression('function (evt, ui) {
53
53
var ufile = ui.files[0],
@@ -140,7 +140,7 @@ use rkit\fileapi\Widget as FileApi;
140
140
141
141
<?= $form->field($model, $attribute, ['template' => "{error}\n{input}\n{hint}"])
142
142
->widget(FileApi::className(), [
143
- 'template' => '@app/modules/admin/views/shared/files/gallery- template',
143
+ 'template' => '@app/path/to/ template',
144
144
'preview' => false,
145
145
'callbacks' => [
146
146
'select' => new JsExpression('function (evt, ui) {
@@ -176,7 +176,7 @@ use rkit\fileapi\Widget as FileApi;
176
176
``` php
177
177
use yii\helpers\Html;
178
178
…
179
-
179
+
180
180
<div id =" <?= $selector; ?>" class =" fileapi" >
181
181
<div class =" btn btn-default btn-small fileapi-fileapi-wrapper" >
182
182
<div class =" fileapi-browse" data-fileapi =" active.hide" >
0 commit comments