I donwloaded this file

I downloaded this files jui ,then I created folder "jui" inside vendor/yiisoft/yii2/ , then I paste the juiasset.php in asset folder ,then I register it to the main layout.when I run my application I get this error

The file or directory to be published does not exist: C:\wamp\www\project\vendor\bower/jquery-ui

Do I need to download the jquery-ui files ?

Please help me I am confuse.

Thank you in advance.

Hi, as it says, you need to install this through composer

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

If you do not have composer I strongly recommend you get it, it will make your life so much easier when you have done it.

Installing composer takes 10 minutes at most.

For users of yii1.x this might be a change that seems annoying but it is a very good change.

how would I do that in windows ?,I already installed composer but I dont know how to run the command.

I assume you just open a CLI window start->run->cmd and use it from there but that’s a guess!

From https://getcomposer.org/doc/00-intro.md#installation-windows

Close your current terminal. Test usage with a new terminal:

C:\Users\username>composer -V

Composer version 27d8904

This is what i got when i run the terminal

C:\Users\ezekel>composer -V

Composer version 1.0-dev (ffffab37a294f3383c812d0329623f0a4ba45387) 2014-11-05 0

6:04:18

ok, so now change directory to where your project lives (the one with composer.json in it) and run command "composer update"

after I run composer update

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 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl

e -> no matching package found.

- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stabl

e -> no matching package found.

- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0

.0].

Potential causes:

  • A typo in the package name

  • The package is not available in a stable-enough version according to your min

imum-stability setting

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

or more details.

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

problems.

I run the composer install and it’s donwloading some files,is this okay ?after this what should I do ?

Once composer install is finished you should have the jquery ui widgets and whatever else you installed available to use in your application.

Thank you flaryp,You save my life :) now I know how to use composer

so if ever I have another to install file or there is an update of some yii files, I will use the composer and same way to execute the command ? so if ever yii has new build or update I can update my files via composer ? am I right ?.

Thank you in advance

I have problem

C:\wamp\www\myproject>php composer.phar require --prefer-dist yiisoft/yii2-jui "*"

Could not open input file: composer.phar

try

composer require --prefer-dist yiisoft/yii2-jui "*"

or

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

Yes, you can keep things updated and add new things with composer, that is its purpose in life and it rocks!

This is the error after executing this composer require --prefer-dist yiisoft/yii2-jui "*"

C:\wamp\www\mywork>composer require --prefer-dist yiisoft/yii2-jui "*"

./composer.json has been updated

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

- Installation request for yiisoft/yii2-jui * -&gt; satisfiable by yiisoft/yii2

-jui[2.0.0].

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

matching package found.

Potential causes:

  • A typo in the package name

  • The package is not available in a stable-enough version according to your min

imum-stability setting

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

or more details.

I think I fixed it, by following this My link

still on progress…

Done!..whooo,finally I installed it…@flarpy, Thank you so much for helping me.