CodeIgniter Forums
setDefaultController - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Support (
+--- Thread: setDefaultController (/thread-77415.html)

setDefaultController - motoroller - 08-28-2020

Can i user DefaultControlle in subfolder like $routes->setDefaultController('Frontend/Home');

RE: setDefaultController - jreklund - 08-28-2020

I'm afraid that's not how it works. You put Home as the name, and it will look for all Home controllers in e.g:

If you just specify /frontend, /backend, or /folder in your URI.