views:

892

answers:

2

Hello you all:

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.

+4  A: 

Hi try this :

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.

ArneRie
That's correct, thanks a lot.
elbicho
A: 

zf create controller 1

  zf create controller <controllername> -m <modulename>

  zf create controller <controllername> --module=<modulename>