Welcome Guest, Not a member yet? Register   Sign In
back-end and front-end separation
#9

[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.


Messages In This Thread
back-end and front-end separation - by El Forum - 03-04-2008, 05:25 PM
back-end and front-end separation - by El Forum - 03-04-2008, 06:55 PM
back-end and front-end separation - by El Forum - 03-04-2008, 09:36 PM
back-end and front-end separation - by El Forum - 03-05-2008, 05:46 AM
back-end and front-end separation - by El Forum - 03-05-2008, 06:36 AM
back-end and front-end separation - by El Forum - 03-05-2008, 11:13 AM
back-end and front-end separation - by El Forum - 03-05-2008, 11:27 AM
back-end and front-end separation - by El Forum - 03-05-2008, 11:37 AM
back-end and front-end separation - by El Forum - 03-05-2008, 06:34 PM
back-end and front-end separation - by El Forum - 04-21-2008, 07:18 PM
back-end and front-end separation - by El Forum - 04-21-2008, 07:21 PM
back-end and front-end separation - by El Forum - 04-21-2008, 09:00 PM
back-end and front-end separation - by El Forum - 04-21-2008, 09:02 PM
back-end and front-end separation - by El Forum - 04-21-2008, 09:10 PM
back-end and front-end separation - by El Forum - 07-25-2011, 07:10 PM
back-end and front-end separation - by El Forum - 11-12-2012, 01:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB