ZF-8607: [QS] Error creating action 'sign' for 'guestbook'
Description
I'm getting the following error message for the Quick Start Tutorial:
$ zf.sh create action sign guestbook
PHP Fatal error: Cannot redeclare class Zend_Loader in /Users/conradwt/php.dir/projects/zend-framework/library/Zend/Loader.php on line 31
Fatal error: Cannot redeclare class Zend_Loader in /Users/conradwt/php.dir/projects/zend-framework/library/Zend/Loader.php on line 31
Next, I'm using the lastest version from trunk.
Comments
Posted by fisharebest (fisharebest) on 2010-02-07T08:03:50.000+0000
This is an issue of case-sensitivity. Although the zftool capitalises the controller when you create it, it doesn't when you try to use it. Try this:
zf.bat create action sign Guestbook
Posted by Matthew Weier O'Phinney (matthew) on 2010-02-07T10:06:57.000+0000
Also, please test against trunk; Ralph has implemented some changes that should (a) make it possible to lowercase the initial letter (it will then ucfirst() it), as well as (b) warn you about what it's doing when it detects this is the case.
Posted by Matthew Weier O'Phinney (matthew) on 2010-02-07T10:07:46.000+0000
Assigning to Ralph, and marking as a Zend_Tool issue. The documentation has been revised already, and will release with 1.10.1.
Posted by Ralf Eggert (ralf) on 2010-05-29T08:27:27.000+0000
duplicates
Posted by Ralph Schindler (ralph) on 2010-09-07T07:12:18.000+0000
This was fixed as part of the 1.10.x release series.