Welcome Guest, Not a member yet? Register   Sign In
Building frontend + backend : best practices ?
#1

[eluser]Isuka[/eluser]
Hi guys,

I'm thinking about my development process and I want to know how you guys doing things when you build a website with a backend.

Since I build website with CI, I make 2 separate applications : one for the frontend and one for the backend.

My structure look like this :
Code:
.htaccess
admin
  .htaccess
  .htpasswd
  index.php
applications
  - backend
    - config
    - controllers
    - helpers
    - models
    - modules
    - views
    - ...
  - frontend
    - config
    - controllers
    - helpers
    - models
    - modules
    - views
    - ...
index.php
skins
  - backend
    - css
    - img
    - js
  - frontend
    - css
    - img
    - js
system
I like this structure because the frontend and the backend are dissociated.
I can quickly protect the backend with an .htaccess in the admin folder for exemple.

But the boring things is that I need to duplicate some frontend and backend common libraries and helpers or duplicate models for each app when models are almost the same.

Of course I could make an unique application and make an admin controller in it but I don't like this idea because I think a backend is an application on its own.
I need also to duplicate my config files when there are the same. Kind of things annoying.

(Is this possible to have a common libraries or helpers folder or config file accessible from both frontend and backend app ?)

I'm curious how you guys handles that.


Messages In This Thread
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 03:23 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:01 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:03 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:41 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 11:48 AM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 12:15 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 01:06 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 03:19 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 03:32 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 04:34 PM
Building frontend + backend : best practices ? - by El Forum - 10-17-2008, 06:11 PM
Building frontend + backend : best practices ? - by El Forum - 10-19-2008, 03:21 AM
Building frontend + backend : best practices ? - by El Forum - 11-24-2008, 04:47 PM
Building frontend + backend : best practices ? - by El Forum - 11-24-2008, 05:06 PM
Building frontend + backend : best practices ? - by El Forum - 11-24-2008, 05:09 PM
Building frontend + backend : best practices ? - by El Forum - 11-30-2008, 12:20 PM
Building frontend + backend : best practices ? - by El Forum - 11-30-2008, 06:19 PM
Building frontend + backend : best practices ? - by El Forum - 03-18-2009, 06:47 PM
Building frontend + backend : best practices ? - by El Forum - 05-03-2009, 04:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB