@@ -15,7 +15,7 @@ use rkit\fileapi\Widget as FileApi;
1515…
1616<?= $form->field($model, $attribute, ['template' => "{label}\n{error}\n{input}\n{hint}"])
1717    ->widget(FileApi::className(), [
18-         'template' => '@app/modules/admin/views/shared/files/image- template',
18+         'template' => '@app/path/to/ template',
1919        'callbacks' => [
2020            'select' => new JsExpression('function (evt, ui) {
2121               …
@@ -47,7 +47,7 @@ use rkit\fileapi\Widget as FileApi;
4747   …
4848   <?= $form->field($model, $attribute, ['template' => "{label}\n{error}\n{input}\n{hint}"])
4949       ->widget(FileApi::className(), [
50-            'template' => '@app/modules/admin/views/shared/files/image- template',
50+            'template' => '@app/path/to/ template',
5151           'callbacks' => [
5252               'select' => new JsExpression('function (evt, ui) {
5353                  var ufile = ui.files[0],
@@ -140,7 +140,7 @@ use rkit\fileapi\Widget as FileApi;
140140
141141   <?= $form->field($model, $attribute, ['template' => "{error}\n{input}\n{hint}"])
142142       ->widget(FileApi::className(), [
143-            'template' => '@app/modules/admin/views/shared/files/gallery- template',
143+            'template' => '@app/path/to/ template',
144144           'preview' => false,
145145           'callbacks' => [
146146               'select' => new JsExpression('function (evt, ui) {
@@ -176,7 +176,7 @@ use rkit\fileapi\Widget as FileApi;
176176   ``` php 
177177   use yii\helpers\Html;
178178   …
179-     
179+ 
180180   <div  id =" <?= $selector; ?>"   class =" fileapi"  >
181181     <div  class =" btn btn-default btn-small fileapi-fileapi-wrapper"  >
182182       <div  class =" fileapi-browse"   data-fileapi =" active.hide"  >
0 commit comments