phalcon / phalcon-devtools

Phalcon Developer Tools
https://docs.phalcon.io/latest/en/devtools
Other
1.33k stars 630 forks source link

Phalcon Devtools error: generate controllers, models and scaffold not working (404 not found page) #1500

Closed luisrom661 closed 3 years ago

luisrom661 commented 3 years ago

(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:

image image

my configurations are as follows (config,php)

image

Details

BeMySlaveDarlin commented 3 years ago
  1. Fixed handle error in #1501
  2. For better workflow i recommend to add into your nginx vhost config
    location /webtools {
        try_files $uri $uri/ /webtools.php?_url=$uri&$args;
    }

    location is a path where your webtools.php is located + filename without .php

For example vhost's root path is /app/public, and webtools located

  1. at /app/public/webtools.php: localtion will be /webtools
  2. at /app/public/webtools/webtools.php: location will be /webtools/webtools
luisrom661 commented 3 years ago
  1. Fixed handle error in #1501
  2. For better workflow i recommend to add into your nginx vhost config
    location /webtools {
        try_files $uri $uri/ /webtools.php?_url=$uri&$args;
    }

location is a path where your webtools.php is located + filename without .php

For example vhost's root path is /app/public, and webtools located

  1. at /app/public/webtools.php: localtion will be /webtools
  2. at /app/public/webtools/webtools.php: location will be /webtools/webtools

thanks for your answer, I am not very clear where I should add those lines of code from the location /webtools, can you please tell me? thanks a lot.

BeMySlaveDarlin commented 3 years ago

While you have Nginx or Apache webserver, you can add this directive into your website configuration under that webserver.

luisrom661 commented 3 years ago

While you have Nginx or Apache webserver, you can add this directive into your website configuration under that webserver.

Thank you!