简体   繁体   English

Yii,yiic和console

[英]Yii, yiic and console

In the installation instructions for Yii it is nescessary to use console and command line utility - yiic. 在Yii的安装说明中,有必要使用控制台和命令行实用程序-yiic。

Well, on my shared hosting I don't have ssh access. 好吧,在我的共享主机上,我没有SSH访问权限。

This is why I have following questions: 这就是为什么我有以下问题:

  1. How often and for what reasons will I have to use console? 我必须多久使用一次控制台?出于什么原因?
  2. Is there a way to avoid using yiic? 有办法避免使用Yiic吗?
  3. May I run yiic on local server and then just transfer everything to the final web server? 我可以在本地服务器上运行yiic,然后将所有内容传输到最终的Web服务器吗?

Thanks! 谢谢!

Answer from Yii forums: 来自Yii论坛的答案:

No, you don't use yiic on production server to generate code. 不,您不需要在生产服务器上使用yiic来生成代码。 You only use it on your dev machine which you normally should have full control over it. 您只能在通常应该完全控制它的dev机器上使用它。

The yiic code generation tool is just a way to help you speed up your development. Yiic代码生成工具只是帮助您加快开发速度的一种方式。 If you are familiar with yii, you can create an application from scratch without using yiic. 如果您熟悉yii,则可以不使用yiic从头开始创建应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM