Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8738959
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:50:36+00:00 2026-06-13T10:50:36+00:00

I am trying to run multiple sites using single code base and code base

  • 0

I am trying to run multiple sites using single code base and code base consist of the following module (i.e. classes)

  • User module
  • Q & A module
  • Faq module

and each class works on MVC pattern i.e. it consist of

  • Entity class
  • Helper class (i.e. static class)
  • View (i.e. pages and controls)

and let say I have 2 sites site1.com and site2.com. And I am trying to achieve following functionality

  • site1.com can have User, Q & A and Faq module up and running
  • site2.com can have User and Q & A module live while Faq module is switched off but it can be turned-on if needed, so my query here is what is the best way to achieve such functionality

do I introduce a flag bit that I check on every page and control belonging to that module? It’s more like CMS where you can turn on/off different features. I am trying to get my head around it, please provide me with an example or point out if I am taking the wrong approach.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T10:50:37+00:00Added an answer on June 13, 2026 at 10:50 am

    After looking to some example and an extensive research I come to a conclusion that it depends upon 2 scenarios:

    Scenario 1:
    If in a case where there is only ten possible modules which are written once and require the whole update of the entire application if they need to be updated, then you can easily use checks which will propagate through the models and be used by the views to adjust the user interface (for example by showing or not the appropriate links in the web application menu).

    Scenario 2:
    If, instead, there is a case of many modules developed by many developers and it is unacceptable to require the update of the whole web application in order to update any of such modules, then look for plugins model, like for example the one used in FogBugz.

    For making choice, consider following elements sorted by importance:

    • Maintainability: is it acceptable to modify the common code of the web application in order to change any of the modules?

    • Dependencies: are some modules dependent of others?

    • Performance: since we don’t know the exact context, it’s difficult to try to predict the impact of each solution. Maybe there will be
      none, if you use heavy, cleverly designed caching.

    • Overall architecture: if there are reasons to do something monolithic (because of the interdependencies), the first solution
      seems more appropriate; this is not the case if every module is
      strictly separated from others.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to run multiple instances of a node server using a bash script.
I'm trying to run multiple timers given a variable list of items. The code
I'm trying to run multiple queries on my database using MySQLi. This is my
Hello everyone I'm trying to run multiple javascripts and use AND statement. When user
I'm trying to run multiple instances of the same script in AutoIt which requires
I am trying to run a simple multiple processes application in Python. The main
Im trying to SSH from Java to a server and run multiple commands. the
What I am trying to do is run the sed on multiple files in
Trying to run the following command in php to run powershell command... the following
Trying to run my program in FreeBSD OS, I have the following results: $

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.