Move Routers to Controller? |
What do you have in mind? The router decide which controller to call. How can it work the other way around? The only thing I can think of is a base controller that would do redirects in its constructor.
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
I mean put router code in Controller, beacause my routes.php is too big, and easy controll routers in controller
(11-07-2021, 12:28 PM)motoroller Wrote: beacause my routes.php is too big Why is it a problem? If you move that code in the controller it will be the same size. I don't get it. (11-07-2021, 12:28 PM)motoroller Wrote: and easy controll routers in controller ...if it's easy, then do it?
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/ |
Welcome Guest, Not a member yet? Register Sign In |