ZF-7718: Fix Controller Name Created By ZF Tool With Module Layout

Issue Type: Patch Created: 2009-08-28T20:16:10.000+0000 Last Updated: 2009-09-23T11:50:38.000+0000 Status: Closed Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Dolly Aswin Harahap (dollyaswin) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: - ZF-7743

Attachments: - zend-tool.patch


I have try zf tool to create project layout with modules. And when I create controller use it, I must edit the controller name according to the module. Ex:

$ zf create controller user index-action-included=1 admin

The command above will produce a controller in admin module with class name UserController. When access the controller, it will return error, because the controller name is not match with controller name that ZF suggest for modular project. The suggest controller name from ZF is Module_ControllerName (Admin_UserController).

And for this, I have made a patch for this case.


Posted by Dolly Aswin Harahap (dollyaswin) on 2009-08-28T20:19:40.000+0000

Here the patch and excecute it on Zend Directory

Zend$ patch -p0 < zend-tool.patch

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-10T14:54:33.000+0000

The patch resolve this problem

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-17T17:17:27.000+0000

The patch before is created from 1.9.1 release

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-17T17:38:50.000+0000

Here I attach the patch for the trunk

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-18T15:23:43.000+0000

The patch can resolve this problem. I made it from revision 18211

Have you found an issue?

See the Overview section for more details.


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

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