duai4379 2015-12-10 09:28
浏览 121
已采纳

如何在YII2中安装Jquery UI?

I work on YII project (advanced) and want to use JUI Extension for Yii 2 I've put "yiisoft/yii2-jui": "~2.0.0" line to my composer.json file and run composer install. After that I've tried to use widget:

<?php

use yii\jui\Sortable;

/* @var $this yii\web\View */
/* @var $searchModel common\models\SearchSomeModel */
/* @var $dataProvider yii\data\ActiveDataProvider */

echo Sortable::widget([
    'items' => [
        'Item 1',
        ['content' => 'Item2'],
        [
            'content' => 'Item3',
            'options' => ['tag' => 'li'],
        ],
    ],
    'options' => ['tag' => 'ul'],
    'itemOptions' => ['tag' => 'li'],
    'clientOptions' => ['cursor' => 'move'],
]); ?>

But there was an error:

The file or directory to be published does not exist: /path/advanced/vendor/bower/jquery-ui

Then I've read a recomendation on github to remove composer.lock and /vendor folder and made composer install again.

After that any page of my app gives error:

The file or directory to be published does not exist: /path/advanced/vendor/bower/jquery/dist

What am I doing wrong?

enter link description here

  • 写回答

1条回答 默认 最新

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥20 python跨服务器实现复制 ,剪切的功能需求
      • ¥15 android sqlite数据库如何读取显示数据(语言-java)
      • ¥15 R语言,单因素cox检验,时间分层后,使用coz.zph()函数再次ph假设检验时报错,如何解决?
      • ¥15 关于#C语言冒泡排序型#的问题,如何解决?
      • ¥15 如何预处理存在负值的样本数据,使其能够全都成为正的
      • ¥15 SW画图拖影,平滑处理如何关闭
      • ¥15 请问怎么通过css改变图片颜色
      • ¥15 Blender: auto rig pro骨骼动画导出后变形穿模
      • ¥15 C51单片机的设计思路哈
      • ¥15 Linux脏牛提权漏洞