Hello yii2
# composer global require "fxp/composer-asset-plugin:~1.1.0"
# composer create-project --prefer-dist yiisoft/yii2-app-basic basic
# composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-advanced yiicomm
# init
#初期化環境common/config/main-local.php
はdb nameがyii2advanced
であることを要求し、yii migrate
を実行してデータ移行を行う.# netstat -ano
#ビューポート占有C:\Windows\System32\drivers\etc\hosts
127.0.0.1 www.a.com
D:\xampp\apache\conf\extra\httpd-vhosts.conf
NameVirtualHost *:80
DocumentRoot D:/xampp/htdocs/
ServerName localhost
##ServerAdmin [email protected]
DocumentRoot "D:/work_php/"
ServerName www.a.com
Require all granted
解決Commoser使用時プロンプト入力Token
に入るhttps://github.com/settings/tokens「Generate new token」をクリックしてTokenを新規作成し、デフォルトの新規作成を選択するとTokenが得られ、この値を入力すればOKです.
rest api
# composer global require "fxp/composer-asset-plugin:~1.1.1"
you also need to add the following code to your project’s composer.json file: "extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}