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 (3.2.3): Generate models in to chosen module.

Hi. Is possible to generate models into directory modules

For example: Table Roles

/backend /models Roles.php

Because currently DevTools do generate models into /app /common /model Roles.php

The same question about CRUD in chosen modules ?

Thanks.

Thanks. But, what about CRUD? Is possible to generate CRUD to directly modules?



12.1k

Maybe you can manage it using a specific config for scaffolding and changing the directories there every time you need to scaffold for a single module. I have a very custom app template so I don't use devtools at the moment. Maybe once I'll write something on my own.