Answer the question
In order to leave comments, you need to log in
Why does The file or directory to be published does not exist: ../basic/vendor/bower/jquery-ui?
View code:
<?php
use yii\jui\AutoComplete;
use app\models\Tag;
?>
<?php
//фомируем список
$listdata=Tag::find()
->select(['id as value', 'title as label'])
->asArray()
->all();
// echo "<pre>";
// var_dump($listdata);
// die(); // здесь все ок, данные пришли
?>
<?= $form->field($model, 'tags', ['labelOptions' => [
'class' => 'labelTags'
]])->widget(
AutoComplete::className(), [
'clientOptions' => [
'source' => $listdata,
],
'options'=>[
'class'=>'form-control'
]
])->textInput(['placeholder' => 'text']) ?>
?>
Answer the question
In order to leave comments, you need to log in
Good afternoon.
Write aliases in the configuration file and specify your real paths in the vendor directory
'aliases' => [
'@bower' => '@vendor/bower-asset',
'@npm' => '@vendor/npm-asset',
],
Why does The file or directory to be published does not exist: ../basic/vendor/bower/jquery-ui?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question