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

Error setting phalcon

Sorry, WebTools doesn't know where is the controllers directory. Please add to application section controllersDir param with valid path.



17.5k

Not sure how to use webtools, but if you look in your config, you should see something like this in your index.html file unless you've created other, separate configs (https://docs.phalcon.io/en/latest/reference/tutorial.html#file-structure):

    $loader = new Loader();
    $loader->registerDirs(array(
        '../app/controllers/',
        '../app/models/'
    ))->register();

../app/controllers/ is the directory it's probably looking for.

You may say more clearly how I need to fix it?



17.5k

Look at your config.ini file. The setup can be found here: https://docs.phalcon.io/en/latest/reference/tools.html as far as I can tell. Again, I've never used Phalcon Web Tools.

The code you want to pay attention to is under Preparing Database Settings:

    [phalcon]
    controllersDir = "../app/controllers/"
    modelsDir      = "../app/models/"
    viewsDir       = "../app/views/"
    baseUri        = "/store/"

The controllersDir needs to be set and correct.