ZF-7445: Zend Tool can't find project profiles on windows
Description
I was following the ZF beginners guide, and had a lot of frustration because I could not create a new controller at all!
Tracing it back, I found that Zend_Tool_Project_Provider_Abstract was adding an unnecessary DIRECTORY_SEPARATOR at the beginning of each directorynames it generated. Fast solution: @ line 126
$projectDirectoryAssembled = DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $parentDirectoriesArray);
-->
$projectDirectoryAssembled = implode(DIRECTORY_SEPARATOR, $parentDirectoriesArray);
Comments
Posted by Tobias (shnapoo) on 2009-08-03T01:54:19.000+0000
You're a hero!
I stumbled upon the same bug when creating a module on Windows ("project was not found" error message). Applying the fast solution to file
library\Zend\Tool\Project\Provider\Abstract.php
helped immediately.
Posted by Peter Aba (thoer) on 2009-08-03T03:40:08.000+0000
I feel stupid for adding the substr first when I actually described what needs to be done just right, I must have been tired. the DIRECTORY_SEPARATOR is simply not needed on windows systems.
Posted by Ralph Schindler (ralph) on 2009-08-10T08:45:04.000+0000
Duplicate of ZF-7465, please see that issue for resolution.
Posted by Daniel Del Rio (ddelrio1986) on 2009-09-29T21:30:52.000+0000
I am getting this error with ZF 1.9.3PL1. I created a new project like this:
zf.bat create project
Then I tried to make a module like so:
zf.bat create module user
Posted by Daniel Del Rio (ddelrio1986) on 2009-09-29T21:38:19.000+0000
I added the ZF library folder to my include_path and it seems to work now. Sorry about the false alarm.