We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Phalcon DevTools

So the command : phalcon controller --name=projectinvoices --directory=./apps/manager/controllers , is not working , says to specify a directory .

Any help ?

edited Sep '16

Use:

phalcon controller --name=projectinvoices --directory=.//apps//manager//controllers//

or full path with double /.



16.3k

I checked, the --directory directive seems to have no effect. What you specify in the controllersDir in your config is what determines where the controller is created. Although the command executed without errors for me but it created controller in controllersDir. I am using Devtools Version (2.1.0 RC 1). Same result with double / as @Edwin suggested.

C:\Wamp\www\test>phalcon controller --name=projectinvoices --directory=/apps/manager/controllers

Phalcon DevTools (2.1.0 RC 1)

  Success: Controller "projectinvoices" was successfully created.

C:\Wamp\www\test\app\controllers\ProjectinvoicesController.php