- Is .zfproject.xml a must in a Zend Framework project?
- What does it do?
- Is it's location absolute?
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
I am using zend framework 1.10. Whenever I create a action using zf tool it re-indents the code in the controller file and removes some function closing brackets. It is kind of buggy, so will not be using it from now on.
Just to add, the zfproject.xml is not needed if you don't use Zend_Tool.
So it's not a must. Personally, I manage all my zf projects more or less without a command line and it works fine for me.
Basically if your going to use Zend_Tool, stick with it. Zend Tool doesn't like it when you create MVC manually. Its just another layer of abstraction that you can probably live without.
When using
Zend_Tool
to manage your Zend Framework project,.zfproject.xml
will contain your application structure state. This is required byZend_Tool
(and only by it) to be able to work, e.g. add code to certain parts., generate things, etc.Quoting ZF Manual on
Zend_Tool_Project
: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.