Issues

ZF-6571: Module support for Zend_Tool

Issue Type: Bug Created: 2009-05-07T08:39:14.000+0000 Last Updated: 2009-09-19T16:21:43.000+0000 Status: Closed Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Ralph Schindler (ralph) Assignee: Ralph Schindler (ralph) Tags: - Zend_Tool

Related issues: Attachments: - ZF-18303-6571.patch

Description

Add module support for Zend_Tool

Comments

Posted by Romeo Adrian Cioaba (mimir) on 2009-05-12T01:35:33.000+0000

I was trying to create a modular structure but i noticed zf doesn't add the new controllers to the module i tell it to if i don't pass the index-action-included=0/1

Here is some output: mimir@orion:~/workspace/projects$ zf create project bdcms Creating project at /home/mimir/workspace/projects/bdcms

mimir@orion:~/workspace/projects$ cd bdcms/ mimir@orion:~/workspace/projects/bdcms$ zf create module admin Creating the following module and artifacts: /home/mimir/workspace/projects/bdcms/application/modules/admin/controllers /home/mimir/workspace/projects/bdcms/application/modules/admin/models /home/mimir/workspace/projects/bdcms/application/modules/admin/views /home/mimir/workspace/projects/bdcms/application/modules/admin/views/scripts /home/mimir/workspace/projects/bdcms/application/modules/admin/views/helpers /home/mimir/workspace/projects/bdcms/application/modules/admin/views/filters Updating project profile '/home/mimir/workspace/projects/bdcms/.zfproject.xml'

mimir@orion:~/workspace/projects/bdcms$ zf create module default Creating the following module and artifacts: /home/mimir/workspace/projects/bdcms/application/modules/default/controllers /home/mimir/workspace/projects/bdcms/application/modules/default/models /home/mimir/workspace/projects/bdcms/application/modules/default/views /home/mimir/workspace/projects/bdcms/application/modules/default/views/scripts /home/mimir/workspace/projects/bdcms/application/modules/default/views/helpers /home/mimir/workspace/projects/bdcms/application/modules/default/views/filters Updating project profile '/home/mimir/workspace/projects/bdcms/.zfproject.xml'

mimir@orion:~/workspace/projects/bdcms$ zf create controller Test default Creating a controller at /home/mimir/workspace/projects/bdcms/application/controllers/TestController.php Creating an index action method in controller Test Creating a view script for the index action method at /home/mimir/workspace/projects/bdcms/application/views/scripts/Test/index.phtml Creating a controller test file at /home/mimir/workspace/projects/bdcms/tests/application/controllers/TestControllerTest.php Updating project profile '/home/mimir/workspace/projects/bdcms/.zfproject.xml'

mimir@orion:~/workspace/projects/bdcms$ zf create controller Newtest index-action-included=0 default Creating a controller at /home/mimir/workspace/projects/bdcms/application/modules/default/controllers/NewtestController.php Creating an index action method in controller Newtest Creating a view script for the index action method at /home/mimir/workspace/projects/bdcms/application/views/scripts/Newtest/index.phtml Creating a controller test file at /home/mimir/workspace/projects/bdcms/tests/application/controllers/NewtestControllerTest.php Updating project profile '/home/mimir/workspace/projects/bdcms/.zfproject.xml'

mimir@orion:~/workspace/projects/bdcms$ zf create controller Anothertest index-action-included=1 default Creating a controller at /home/mimir/workspace/projects/bdcms/application/modules/default/controllers/AnothertestController.php Creating an index action method in controller Anothertest Creating a view script for the index action method at /home/mimir/workspace/projects/bdcms/application/views/scripts/Anothertest/index.phtml Creating a controller test file at /home/mimir/workspace/projects/bdcms/tests/application/controllers/AnothertestControllerTest.php Updating project profile '/home/mimir/workspace/projects/bdcms/.zfproject.xml' Furthermore, i notice that both index-action-included=0 and index-action-included=1 generate the index action for the new controller.

Posted by Benjamin Eberlei (beberlei) on 2009-09-17T15:50:55.000+0000

Changed from "New Feature" to "Bug"

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-19T16:08:19.000+0000

Here the patch for this problem

Posted by Dolly Aswin Harahap (dollyaswin) on 2009-09-19T16:21:41.000+0000

The problem is the provider receive string the argument (index-action-included=0) not the value (just 0). Just patch the code with file that I attach before.

Thanks.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts