i want from url like this: example.com/?module=index&controller=index&action=hello
to get the values by $_GET[] and then create namespace path like application\modules\index\controllers\IndexController and then
use application\modules\index\controllers\IndexController as IndexController;
$IndexController = new IndexController;
$IndexController->hello();
for example, but when i try to create the path in random ways -> error and .. i don’t know how to do it please help!
As I mentioned in comment: you can’t use variables in use statement, you have to use fully namespaced class name in variable when creating new instance.
So it would look like this: