php - Phalcon Devtools error: generate controllers, models and scaffold not working (404 not found page)
(this text is automatically translated from Spanish to English.)
Hello, I would like to ask about this error that Phalcon devtools shows when generating a controller, model or scaffold:
my configurations are as follows (config,php)
Details:
-System versions: Phalcon Devtools 4.1.0
-Phalcon Framework version: Phalcon 4.1.0
-PHP Version: PHP Version 7.4.16
-Operating System: Windows 10
-Server: Apache and MySQL
Answer
Solution:
This issue is not related to phalcon-devtools. You should configure you webserver vhost to handle this requests. For example in nginx:
server {
...
# Here setting to handle requests on index.php
location / {
try_files $uri $uri/ /index.php?_url=$uri&$args;
}
# Here setting to handle requests on webtools.php
location /webtools {
try_files $uri $uri/ /webtools.php?_url=$uri&$args;
}
...
}
Source