[eluser]Mirage[/eluser]
There will be situations when your url will collide with a classname or function name. This is one of the reasons I'd prefer CI would support use of suffixes out of the box, e.g:
- User_Model
- Directory_Controller
- Index_View
Interestingly enough that's how it was done for helpers and plugins. There are other reasons I like this verbose notation but since it's not available without rewriting a bunch of core code let's just forget about that.
What you CAN do in case of collisions is to create e.g. a custom controller name and write a route to map to it:
Code:
// in routes.php config
$routes['directory(.*)']='Directory_Controller$1';
// controller Directory_Controller.php
class Directory_Controller extends Controler {
// yada yada
}
HTH,
-m