ci-bonfire/Bonfire — Issue #235: Building frontend modules
Author: liamr
Created: 2011-10-08 19:36:05+00:00
State: open

Just to make my workflow easier I've been working on building my site as a module and not in the usual way (in the app directory). Personally I like the idea that everything within that one folder is the site (it also means that I can create site_v2, site_dev etc and point the routes to the right place). Anyway, to get bonfire to work this way it's as easy as renaming the default controller to the name of your module, and adding in these lines after the default routes:

```
$route[SITE_AREA .'/([a-z_]+)']	= SITE_AREA ."/$1/index";
$route['(:any)'] = 'site/$1';'
```

where 'site' is the name of the module. I'm not sure if this is something to add to core functionality?