Home  >  Article  >  PHP Framework  >  How to configure yii in w10

How to configure yii in w10

hzc
hzcOriginal
2020-06-15 17:06:041822browse

How to configure yii in w10

w10 How to configure yii?

To install baicomposer, you can use Baidu composer to download and install the software. Please make sure the machine has a PHP environment before du installation. After installation, enter the console and enter composer to see the following interface.

Use the cd command to enter the directory where the template is to be stored (I temporarily store it in D:)

To prepare to install the advanced template, enter the command

composer global require "fxp /composer-asset-plugin:1.0.0-beta1"

composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced yii2

Start below Just wait, you know the reason...

Note that the last yii2 is the folder name of the template and can be modified. (I use yii-application)

After installing the template, you need to initialize the template. Enter the advanced template directory. Select the installation environment, 0: development environment, 1: application environment.

After initialization, configure database information. Open the template file and find main-local.php in common\config

Enter the user name, password, and database name (it already exists, if it does not exist, you need to create it yourself),

Recommended tutorial: "phpmyadmintutorial

The above is the detailed content of How to configure yii in w10. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:How to debug sql in yiiNext article:How to debug sql in yii