Issues

ZF-6571: Module support for Zend_Tool

Description

Add module support for Zend_Tool

Comments

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.

Changed from "New Feature" to "Bug"

Here the patch for this problem

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.