Hi,
I have a controller under a sub-folder (Controllers\ajax\Test.php) but when I try to access from the browser (/ajax/test/testmethod) I get an error message "Controller or its method is not found."
Please note if I do a class map in Config\Autoload.php like this:
$classmap = [
"Test" => APPPATH . "Controllers/ajax/Test.php"
];
then it works. However, If I namespace my controller (namespace Ajax) then the controllers does not get loaded and get the same error message.
Is there any workaround or should I do it in another way.
Thanks in advance and best regards,
Fabian