Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

application as folder in webroot

I've placed my applications as folder in a webroot. for example :

http://site.com/myapp1 http://site.com/myapp2

in phalcon 3.x i have no problem at all. but since i use phalcon 4.x. it always shows controller not found. as it appears myapp1 is considered as controller.

i've set the router : $router->handle($_SERVER["REQUEST_URI"]);

any help is appreciated thanks



364
Accepted
answer

i've found solution :

change

$router->handle($_SERVER["REQUEST_URI"]);

to

$router->handle($_GET['_url'] ?? '/');