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.

Phalcon 4 project folder inside webroot result projectController handler class cannot be loaded

I've used phalcon 3.x a while. and i'm planning to switch to 4.0. But i'm facing problem regarding baseUri

My project is inside a webroot folder.


Using phalcon 3.4, it workes just fine, when i open


but when i use phalcon 4.0 an error occured

ProjectController handler class cannot be loaded

i have set

baseUri = /project/

but still not working

is this related to the





how should i fix this ?


i've found the solution.

JJust change the $_SERVER['REQUEST_URI'] to

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


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