問題描述
- .zfproject.xml 在 Zend Framework 項(xiàng)目中是必須的嗎?
- 它有什么作用?
- 它的位置是絕對(duì)的嗎?
推薦答案
當(dāng)使用 Zend_Tool
管理您的 Zend Framework 項(xiàng)目時(shí),.zfproject.xml
將包含您的應(yīng)用程序結(jié)構(gòu)狀態(tài).Zend_Tool
(并且只有它)需要這是能夠工作的,例如給某些部分添加代碼,生成東西等
When using Zend_Tool
to manage your Zend Framework project, .zfproject.xml
will contain your application structure state. This is required by Zend_Tool
(and only by it) to be able to work, e.g. add code to certain parts., generate things, etc.
在 Zend_Tool_Project
上引用 ZF 手冊(cè):
Quoting ZF Manual on Zend_Tool_Project
:
因此,例如,如果在一個(gè)命令中您創(chuàng)建了一個(gè)控制器,而在下一個(gè)命令中您希望在該控制器中創(chuàng)建一個(gè)動(dòng)作,Zend_Tool_Project 將必須知道您創(chuàng)建的控制器文件,以便您可以(在下一個(gè)操作),可以將該操作附加到它.
So, for example, if in one command you created a controller, and in the next command you wish to create an action within that controller, Zend_Tool_Project is gonna have to know about the controller file you created so that you can (in the next action), be able to append that action to it.
我不確定 Zend_Tool 是否可以配置為使用 .zfproject.xml
的不同路徑.我的建議是保持原樣.無論如何,這是一個(gè)隱藏文件.
I am not sure if Zend_Tool can be configured to use a different path to .zfproject.xml
. My suggestion would be to leave it untouched. It's a hidden file anyway.
這篇關(guān)于.zfproject.xml 在 Zend Framework 項(xiàng)目中是必須的嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!