I just managed to create a project using Zend_Tool, but I am stuck on "second step" - enabling layout.
zf enable layout
leads to:
An Error Has Occurred
Action 'enable' is not a valid action.
This is my folder structure:
|--library
| |--Zend //framework classes in this folder
|
|--bin //command line tool folder
| --zf.sh
| --zf.php
| --zf.exe
|
|--zend_test //my test project folder
| |--application
| |--library
| | --Zend //symlink to ../../library/Zend
| |--public
| |--tests
The library folder is in my include_path. Checked with:
php -i | grep include_path
Note that I was able to create the project with zf create project zend_test
and other actions like show
work.
There are some ppl on the official Zend Framework forum with same problem, but there are no answers.
Thanks for any help.
I solved the problem.
It was coincidence, what led to this error. At first I was unable to even run the tool because I couldn't set include_path
(because of permissions). After that there was a problem with (most likely) out-of-date php. (original question is here)
After few hours of headache I deleted the tool and left ZF for a while. Two days ago I wanted to try that on updated server, but coulnd't find the tool so I downloaded it again. Unfortunatelly (for me) Zend released new version of framework and I extracted only the tool.
Briefly
There was a mismatch in versions of the tool (bin
) and the framework (library
) or possibly the library
folder was corrupted.
Solution
Download and extract the whole ZF again to make sure the versions match and files are not corrupted. Also double check the include_path with php -i | grep include_path