ezekel
(Dixunei)
December 6, 2014, 1:38pm
1
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.
flarpy
(Peter)
December 6, 2014, 4:37pm
2
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.
ezekel
(Dixunei)
December 6, 2014, 5:08pm
3
flarpy:
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.
flarpy
(Peter)
December 6, 2014, 5:10pm
4
I assume you just open a CLI window start->run->cmd and use it from there but that’s a guess!
flarpy
(Peter)
December 6, 2014, 5:11pm
5
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
ezekel
(Dixunei)
December 6, 2014, 5:19pm
6
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
flarpy
(Peter)
December 6, 2014, 5:26pm
7
ok, so now change directory to where your project lives (the one with composer.json in it) and run command "composer update"
ezekel
(Dixunei)
December 6, 2014, 5:39pm
8
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:
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.
ezekel
(Dixunei)
December 6, 2014, 5:45pm
9
I run the composer install and it’s donwloading some files,is this okay ?after this what should I do ?
flarpy
(Peter)
December 6, 2014, 5:55pm
10
Once composer install is finished you should have the jquery ui widgets and whatever else you installed available to use in your application.
ezekel
(Dixunei)
December 6, 2014, 5:59pm
11
Thank you flaryp,You save my life now I know how to use composer
ezekel
(Dixunei)
December 6, 2014, 6:06pm
12
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
ezekel
(Dixunei)
December 6, 2014, 6:10pm
13
I have problem
C:\wamp\www\myproject>php composer.phar require --prefer-dist yiisoft/yii2-jui "*"
Could not open input file: composer.phar
flarpy
(Peter)
December 6, 2014, 6:15pm
14
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!
ezekel
(Dixunei)
December 6, 2014, 6:24pm
15
flarpy:
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 * -> satisfiable by yiisoft/yii2
-jui[2.0.0].
- yiisoft/yii2-jui 2.0.0 requires bower-asset/jquery-ui 1.11.*@stable -> no
matching package found.
Potential causes:
imum-stability setting
see <https://groups.google.com/d/topic/composer-dev/_g3ASeIFlrc/discussion > f
or more details.
ezekel
(Dixunei)
December 6, 2014, 6:42pm
16
I think I fixed it, by following this My link
still on progress…
ezekel
(Dixunei)
December 6, 2014, 6:43pm
17
Done!..whooo,finally I installed it…@flarpy , Thank you so much for helping me.