Zend Framework

wrong creation of module controller with zf.bat tool

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Tool
  • Labels:
    None

Description

when we create module controller with zf.bat it creates wrong class for controller. It creates only class name without prefix of the module name.

example:
zf.bat create controller list 1 blog

it creates in modules/blog/controller/ListController.php
class ListController extends Zend_Controller_Action
{

public function init() {/* Initialize action controller here */}
public function indexAction(){ // action body}
}

but the right name would be with the prefix of module name
class Blog_ListController extends Zend_Controller_Action
{

public function init() {/* Initialize action controller here */}
public function indexAction(){ // action body}
}

Issue Links

Activity

Hide
Ralph Schindler added a comment -

Fixed in r18600 in incubator as part of ZF-6787. Will be included in 1.10 release.

Show
Ralph Schindler added a comment - Fixed in r18600 in incubator as part of ZF-6787. Will be included in 1.10 release.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: