A
A
Alexander Ampleev2018-03-16 12:49:35
Yii
Alexander Ampleev, 2018-03-16 12:49:35

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']) ?>

?>

Googled this query "The file or directory to be published does not exist: ../basic/vendor/bower/jquery-ui ?" mostly refer to composer update. Answers like How do I add the bower/jquery/dist directory to Yii2?
But it doesn't help me.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry, 2018-03-16
@Ampleev

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',
    ],

M
Maxim Timofeev, 2018-03-16
@webinar

Why does The file or directory to be published does not exist: ../basic/vendor/bower/jquery-ui?

Because there is no such directory. jquery-ui is missing from the base build. Install it via composer.
www.yiiframework.com/doc-2.0/ext-jui-index.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question