Awan
Awan

Reputation: 18560

Zend: Create action in a specific controller in specific module with command line

I want to create a testAction in testController of testModule with command line. So I go to tesModule directory(cd application/modules/test) and run the following command.

zf.sh create action test -c test

It created a action in application/modules/test/controllers/testController.php but it created testAction's test.phtml file in application/views/scripts/test/ folder. But I think it should be in same module folder like this: application/modules/test/views/scripts/test/ folder.

What command should I use that will create action and its phtml file in same module folder.

Thanks

Upvotes: 1

Views: 1373

Answers (1)

Wouter Dorgelo
Wouter Dorgelo

Reputation: 11978

zf.sh create test test 1 test

Upvotes: 1

Related Questions