Need help with JUI Extension for Yii 2

I am new to Yii2 so please be patient.

Need help with installing the JUI Extension for my application (Yii2 basic).

I installed the Composer globally (windows setup).

When running


php composer.phar require --prefer-dist yiisoft/yii2-jui "*"

I get the message


./composer.json has been created

Loading composer repositories with package information

Updating dependencies (including require-dev)

Your requirements could not be resolved to an installable set of packages.


  Problem 1

    - yiisoft/yii2-jui 2.0.1 requires bower-asset/jquery-ui 1.11.*@stable -> no

matching package found.

    - yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*@stable -> no

matching package found.

    - Installation request for yiisoft/yii2-jui * -> satisfiable by yiisoft/yii2

-jui[2.0.0, 2.0.1].

jquery-ui-1.11.2 is installed in vendor\bower

Although I read the Composer documentation I am still not familar with it.

Can anyone help?

Thanks in advance

I finally managed to install yii2-jui manually.

The DatePicker works but looks horrible:

6246

DatePicker.JPG

Something is missing :(

Any idea is appreciate.

Works now.

In case someone is interested in the solution:

The path to the css-file was wrong in the JuiAsset.php.


public $sourcePath = '@bower/jquery-ui';

public $js = [

'jquery-ui.js',

];

public $css = [

'jquery-ui.css',

];