Yii2.0 yiic command not working

梦想的初衷 提交于 2019-12-25 17:43:32

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!