Anyone got Yii 2 DatePicker working?

Adding the line of code to the composer.json file does nothing.

Here is what I get on my composer through command line …




./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.2 requires bower-asset/jquery-ui 1.11.*@stable -> no matching package found.

    - 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, 2.0.2].


Potential causes:

 - A typo in the package name

 - The package is not available in a stable-enough version according to your minimum-stability setting

   see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion> for more details.


Read <http://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.


Installation failed, deleting ./composer.json.






$ composer require yiisoft/yii2-jui

Using version ~2.0@dev for yiisoft/yii2-jui

./composer.json has been updated

Loading composer repositories with package information

Updating dependencies (including require-dev)

Nothing to install or update                                 

Writing lock file

Generating autoload files




It is OK I have got it working.

Needed to change this line in composer.json …




"minimum-stability": "stable",



To this …




"minimum-stability": "dev",



As the minimum stability was causing the problem.

I’m having the same issue, and the date picker is not working. Please can post your composer.json file?

Hi,

Have you made this line to "dev"?




"minimum-stability": "dev",



Also comment out the following 2 lines in "web/index.php" …




// defined('YII_DEBUG') or define('YII_DEBUG', true);

// defined('YII_ENV') or define('YII_ENV', 'dev');



And try composer again.