Just getting started with Phalcon. Struggled a lot to get the tools up and running but now it works in webstorm and from the terminal. So I initially created a project using this command
phalcon create-project --name test --use-config-ini
It generates the project structure correctly and if I deploy it to the server it works correctly. I want to generate models and now the issue starts because the config ini is generated like this:
controllersDir = ../app/controllers/
modelsDir = ../app/models/
viewsDir = ../app/views/
pluginsDir = ../app/plugins/
libraryDir = ../app/library/
cacheDir = ../app/cache/
When I run:
phalcon create-model user
it displays it correctly generated the file but is nowhere to be found. If I run:
phalcon -create-controller test
I get the error: Error: Unable to write to '../app/controllers//TestController.php' (Full access has been granted to everyone on the dir).
I noticed when changing the paths by removing the "../" the generation seems to work (eg. modelsDir = app/models/). Which seems strange to me cause I see the same structure working in the tutorial movie.
Does anyone know what might be causing this?