ZF-8607: [QS] Error creating action 'sign' for 'guestbook'

Issue Type: Bug Created: 2009-12-22T02:46:17.000+0000 Last Updated: 2010-09-07T07:12:18.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Conrad Taylor (conradwt) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: - ZF-8588



I'm getting the following error message for the Quick Start Tutorial:

$ 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 latest version from trunk.


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


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.