I am setting up my cakephp project on a local test environment from my GIT repo.
it is accessed like so: localhost/projectName/controller/action
However, i get an error saying the controller "projectName" cannot be found.
So, i need it to use localhost/projectName as my "root" directory, and i am kinda lost as to how. I can obviously define a manual route like:
$routes->connect('/projectName/controller/action', ['controller' => 'Pages', 'action' => 'home']);
but i don't know how i can make it a "catch all" instead of just routing to one specific controller / action?
I hope my question makes sense. thanks