Yii 2官網推薦用Composer安裝框架:
命令:php composer.phar global require "fxp/composer-asset-plugin:1.0.0"
在本地出錯:Could not open input file: composer.phar。
在 "官網->文檔->Yii 2.0 權威指南->安裝 Yii" 中,用的是以下:
命令:composer global require "fxp/composer-asset-plugin:1.0.0"
官網Yii 2.0 權威指南鏈接:
http://www.yiichina.com/doc/guide/2.0/start-installation