CodeIgniter Forums
CI4 auto-routing (improved) with folders - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: CI4 auto-routing (improved) with folders (/showthread.php?tid=87537)



CI4 auto-routing (improved) with folders - codeus - 05-01-2023

Using auto routing (improved), is there still support for directories with regard to routing? Access attempt on a controller in a new folder (using Auto route improved) resulted in a 404.

In the documentation, it *seems* that directory URI is only supported with legacy routing.

Thanks
Mike


RE: CI4 auto-routing (improved) with folders - kenjis - 05-01-2023

auto routing (improved) supports sub directories.
See https://codeigniter4.github.io/CodeIgniter4/incoming/controllers.html#organizing-your-controllers-into-sub-directories