If you are building a large application you might find it convenient to organize your controllers into sub-folders. revIgniter permits you to do this.
Simply create folders within your:
application/controllers
directory and place your controller libraries within them.
Note: When using this feature the first segment of your URI must specify the folder. For example, lets say you have a controller located here:
application/controllers/products/shoes.lc
To call the above controller your URI will look something like this:
example.com/index.lc/products/shoes/show/123
Note: Name conflictsBe careful not to name the sub-folder the same as that of an existing controller, as the controller will take precedence and the subfolder route will be ignored.
For instance if you have a sub-folder called "feast" and a controller called "feast.lc" then you need to rename the folder or controller in order not to confuse the routing.
# Customising Routes
Each of your sub-folders may contain a default controller which will be called if the URL contains only the sub-folder. Simply name your default controller as specified in your routes.lc file
revIgniter also permits you to remap your URIs using its URI Routing feature.
# See also - Controllers - Defining a default controller - URI Routing