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条回答

      报告相同问题?

      相关推荐 更多相似问题

      悬赏问题

      • ¥15 类的继承,综合输出学生信息并析构
      • ¥15 js 使用contenteditable属性模拟富文本框的时候如何定位光标到指定位置
      • ¥15 怎么激活组态王的Touchvew菜单和Touchmak 菜单
      • ¥15 Meta分析中,如何在只有样本量的情况下用cma处理效应量r值。
      • ¥15 关于#OpenCV#的问题,如何解决?(语言-qt|开发工具-visual studio)
      • ¥15 centos环境中引入jsoncpp后,编译工程报错,找不到基本库。
      • ¥15 vue3为什么请求在这边获取不到数据呢(关键词-select)
      • ¥20 Multisim仿真设计三路智力抢答装置
      • ¥15 用UML制作简单的语音计算机
      • ¥15 综合的类,这个类里面里面又有构造方法,重载方法,有继承,有重写,有接口