CodeIgniter Forums
ignore controllers in route config? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Best Practices (https://forum.codeigniter.com/forumdisplay.php?fid=12)
+--- Thread: ignore controllers in route config? (/showthread.php?tid=692)



ignore controllers in route config? - coastalweb - 01-06-2015

Hi guys, l currently have something very similar at the end of my routes file:

$route['^(?!ignore)(?!these)(?!controllers)(:any)'] = 'pages/view/$1';

But my list is much longer... my question is, is there a more elegant solution to list out the controllers l want "ignored"? Because my list is about 10 or 20 deep.