CodeIgniter Forums

Full Version: ignore controllers in route config?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.