route to default method if method not found - 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: route to default method if method not found (/showthread.php?tid=76711) |
route to default method if method not found - badger - 06-11-2020 the default method is called when a controller is called without a parameter but if a parameter exists and it is not a method in the controller then a 404 appears. is there a way in routes to always call a default method which would then decide what to do. i've tried it with eg index($p0=0,$p1=0) but no luck. thanks, Bill |