CodeIgniter Forums
How to auto route in modules - 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: How to auto route in modules (/showthread.php?tid=81026)



How to auto route in modules - Chivinsdev - 01-15-2022

Hello Codeigniter teams, 

Please how can I also auto route in codeigniter modules.
I will be needing this feature


RE: How to auto route in modules - kenjis - 01-15-2022

Why do you need this?

All you have to do now is to write Config/Routes.php.
https://codeigniter4.github.io/CodeIgniter4/general/modules.html#routes

And how do you resolve the controller name conflicts?
Code:
app/Controllers/Home.php
acme/Blog/Controllers/Home.php



RE: How to auto route in modules - Chivinsdev - 01-15-2022

(01-15-2022, 05:03 PM)kenjis Wrote: Why do you need this?

All you have to do now is to write Config/Routes.php.
https://codeigniter4.github.io/CodeIgniter4/general/modules.html#routes

And how do you resolve the controller name conflicts?
Code:
app/Controllers/Home.php
acme/Blog/Controllers/Home.php

Thanks I did not actually reason it to that angle