Zend Framework

Module support for Zend_Tool

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: N/A N/A
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Tool
  • Labels:
    None

Description

Add module support for Zend_Tool

Activity

Hide
Romeo Adrian Cioaba added a comment -

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:
<code>
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'
</code>
Furthermore, i notice that both index-action-included=0 and index-action-included=1 generate the index action for the new controller.

Show
Romeo Adrian Cioaba added a comment - 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: <code> 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' </code> Furthermore, i notice that both index-action-included=0 and index-action-included=1 generate the index action for the new controller.
Hide
Benjamin Eberlei added a comment -

Changed from "New Feature" to "Bug"

Show
Benjamin Eberlei added a comment - Changed from "New Feature" to "Bug"
Hide
Dolly Aswin Harahap added a comment -

Here the patch for this problem

Show
Dolly Aswin Harahap added a comment - Here the patch for this problem
Hide
Dolly Aswin Harahap added a comment -

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.

Show
Dolly Aswin Harahap added a comment - 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.

People

Vote (8)
Watch (8)

Dates

  • Created:
    Updated:
    Resolved: