Search code examples
zend-frameworkzend-tool

Zend Tool creation of a controller inside a module


I'm trying to create a controller inside a module using the Zend_Tool doing this:

$ zf create module admin
$ zf create controller login admin

With the first command it creates de module hierarchy, but in the second command it creates the controller and view into the default namespace.

Is it something that I'm doing wrong?

Thanks.

H.C.


Solution

  • zf create module admin zf create controller login index-action-included[=1] admin

    But i think you have to change the class name for the logincontroller manualy to admin_logincontroller.