问题
Hi I am new to Yii framework development.
Yiic webapp not working, even when you run yiic on the commandline
I was following a tutorial on-line but I got stuck because the yiic command is not recognised and I also noticed that the framework folder is not there.
I download Yii 2.0 archive from the Yii home website and extracted it to my Webroot folder.
Thanks in advance.
回答1:
I recommend you install composer and follow the instructions here:
http://www.yiiframework.com/doc-2.0/guide-start-installation.html
Yii 1 is installed with yiic command, make sure you're using Yii2 guide/docs.
回答2:
instead of using yiic
from Yii 1.x, you can use Gii Extension of Yii 2.
http://localhost/path/to/index.php?r=gii
It provides the same code generators:
- Model Generator
- CRUD Generator
- Controller Generator
- Form Generator
- Module Generator
- Extension Generator
来源:https://stackoverflow.com/questions/29232665/yii2-0-yiic-command-not-working