問題描述
- .zfproject.xml 在 Zend Framework 項目中是必須的嗎?
- 它有什么作用?
- 它的位置是絕對的嗎?
推薦答案
當使用 Zend_Tool
管理您的 Zend Framework 項目時,.zfproject.xml
將包含您的應用程序結構狀態.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 手冊:
Quoting ZF Manual on Zend_Tool_Project
:
因此,例如,如果在一個命令中您創建了一個控制器,而在下一個命令中您希望在該控制器中創建一個動作,Zend_Tool_Project 將必須知道您創建的控制器文件,以便您可以(在下一個操作),可以將該操作附加到它.
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
的不同路徑.我的建議是保持原樣.無論如何,這是一個隱藏文件.
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.
這篇關于.zfproject.xml 在 Zend Framework 項目中是必須的嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!