[eluser]esra[/eluser]
[quote author="Zacharias Knudsen" date="1204760234"]You could also use two applications (as the pyromaniac) suggest, together with Matchbox, and have a module directory in your system folder with resources that are to be shared between the two, and then additional module directories in each application folder with resources exclusive to front/back-end.[/quote]
In the case of Matchbox, could you not modify MY_Router to conditionally load a module from application/admin/modules/ when 'admin' was included as the first segment in the url? You could probably enable this as a feature via a config setting. The advantage would be sharing common libraries, helpers, and plugins within a single application rather than creating two applications. The disadvantage, especially when a module installer is considered, is dividing module specific code among two module directory system.
Code:
application/
application/admin/modules/
application/config/
application/controllers/
application/helpers/
application/hooks/
application/language/
application/models/
application/modules/
application/plugins/
application/views/
In our earlier projects at work, we use the pyromaniac approach but rename a second copy of index.php to admin.php in order to load the two applications.