Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 337
elbicho Avatar asked Aug 18 '09 08:08

elbicho


2 Answers

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.

like image 146
opHASnoNAME Avatar answered Sep 22 '22 01:09

opHASnoNAME


  zf create controller <controllername> 1 <modulename>

  zf create controller <controllername> -m <modulename>

  zf create controller <controllername> --module=<modulename>
like image 34
comet Avatar answered Sep 25 '22 01:09

comet