CodeIgniter Forums
How to prevent loading Controller without Route? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Discussion (https://forum.codeigniter.com/forum-31.html)
+--- Thread: How to prevent loading Controller without Route? (/thread-74643.html)



How to prevent loading Controller without Route? - kingstyles - 10-19-2019

How to prevent loading Controller without Route?


RE: How to prevent loading Controller without Route? - InsiteFX - 10-19-2019

You can make the controller method private, did you try to make the method private?


RE: How to prevent loading Controller without Route? - titounnes - 10-19-2019

you can setup on your config/Route.php
setAutoRoute(false)


RE: How to prevent loading Controller without Route? - kingstyles - 10-19-2019

(10-19-2019, 06:32 PM)titounnes Wrote: you can setup on your config/Route.php
setAutoRoute(false)

Thanks