Yii2 composer 安装失败!


根据官网(地址 http://www.yiichina.com/download )上的说明教程进行安装的。
下载安装composer ,然后执行下面这一句(官网说的是错误的,官网说的 php composer.phar 会报错,需要改成 composer 才可以):


 composer global require "fxp/composer-asset-plugin:1.0.0-beta3"
composer create-project yiisoft/yii2-app-advanced advanced 2.0.0

在网站根目录中生成目录 /advanced/
图片描述
打开 http://localhost/advanced/frontend/web/ 没有 index.php
打开 http://localhost/advanced/backend/web/ 没有 index.php

但是官网的文档却说有,文档地址: http://www.yiichina.com/guide/2/start-installation
现在不知道如何才可以安装,都是按照官网教程安装。

composer yii2

TYPE90 9 years, 8 months ago

你要初始化的,在命令行输入 php init.bat

633091 answered 9 years, 8 months ago

执行 ./init.bat 这个文件 初始化试试。具体看这里 https://github.com/yiisoft/yii2/blob/master/docs/guide/tutorial-advanced-app.md

花开院柚罗 answered 9 years, 8 months ago

Your Answer