ZF-6787: Error controller class name in module

Issue Type: Bug Created: 2009-05-23T11:36:57.000+0000 Last Updated: 2010-11-09T14:02:00.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Alexey Simonenko (meritt) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: - ZF-7743

Attachments: - zf-6787.patch


When i create module

<pre class="highlight">
zf create module blog

and then controller in this module

<pre class="highlight">
zf create controller post 1 blog

i get error in class name

<pre class="highlight">
class PostController extends Zend_Controller_Action

but i should have

<pre class="highlight">
class Blog_PostController extends Zend_Controller_Action


Posted by Brenton Alker (brenton) on 2009-06-04T17:49:37.000+0000

Patch to prefix controllers created within modules with Module_

I don't know if there is a better place to format (ucfirst()) the module name? (Related to fix for ZF-6853)

Posted by Jon Whitcraft (sidhighwind) on 2009-09-22T07:23:52.000+0000

Just Linking the issues.

Posted by Jon Whitcraft (sidhighwind) on 2009-09-22T08:34:33.000+0000

I just applied this patch to the 1.9.3 code and it works just fine. I hope to see this included in the trunk soon.

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-23T11:50:38.000+0000

This issue is related to ZF-7718

Posted by Ralph Schindler (ralph) on 2009-10-16T13:31:13.000+0000

Fixed in incubator at r18600, will be part of the 1.10 release.

Posted by Michael Alber (malber_o2m) on 2010-11-09T14:02:00.000+0000

runnign 1.11.0

zf create module blog

creates application/modules/blog per the patch, but should it also create tests/application/modules/blog?

In the case of (see ZF-7121) zf create module admin zf create controller index index-action-included[=1] admin

tests/application/controllers/IndexControllerTest.php is overwritten, I would assume that it should create a tests/application/modules/admin/controllers/IndexControllerTest.php instead.

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.