Donloaded Yii, my server is xampp and works fine, after install yii at C:Xampp/htdocs under the name of "yii", went to cmd to create a webapp… by writing
cd C:\xampp\htdocs\yii\framework
That works fine, it retrieves this same line:
C:\xampp\htdocs\yii\framework
then i write:
[color="#FF0000"]yiic webapp …\testdrive
then: Nothing, it gives me an error message: system cant find specific route[/color]
I already try everything, changed \ to / changed that line for many others i found on internet for similar problem reports, i already checked my control panel "path" and added the php route, every option i could find on internet… still cant create an app, please help!
What version of the Yii you used? If you want to install a Yii2 (see the forum title:) ) please use easy instruction below:
Install Yii2 via Composer
This is the preferred way of installing Yii 2.0. If you do not have Composer yet, you may install it by following the instructions here.
After installing Composer, run the following command to install the Composer Asset Plugin:
php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
Now choose one of the application templates to start installing Yii 2.0. An application template is a package that contains a skeleton Web application written in Yii.
To install the basic application template, run the command below:
Note that you may be prompted to enter your GitHub username and password during the installation process. This is normal. Just enter them and continue.
Yii (or any other package hosted on Gihub) can be installed via Composer without a Github account. My colleague who has no Github account did it successfully several times.
When installing/updating multiple dependencies Composer may exceed the rate limit of Github API for anonymous users (60 requests/hour). In that case it will promt you for your Github creditentals.
So it seems like having a Github account - while not strictly required - is strongly recommended.
Git client is required by Composer but Git has nothing to do with Yii application development. You can use any VCS you prefer or no VCS at all.
I am at the same stage as the original poster, just making the move from Yii 1 to Yii 2. I managed to get the basic application going following the installation guide, but I’m still perplexed about what Composer is. Is it involved in anything other than creating a project?
Composer - it’s a convenient packages manager. It is means you should not download fresh version of projects packages from the different web resources, and you will be sure that all who use you project in they own environmental has exactly set of packages (and their version) as yours.
A think, what I’m trying to bring to you is - you should use composer to:
SetUp Yii
Download and install extensions to the your project (or globally)
Update all extensions just typing ‘composer update’ in you console.