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 8366351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T12:53:43+00:00 2026-06-09T12:53:43+00:00

this is my current directory setup. application – controllers – models – views –

  • 0

this is my current directory setup.

application
- controllers
- models
- views
- config
- errors

public <-- document root
- images
- js
- css

what i want to do is set it up like this

frontapp
- controllers
- models
- views

membersapp
- controllers
- models
- views

adminapp
- controllers
- models
- views

config
errors
public

this setup would let me have all the controllers, models, and views organized for each section of the application. My question is how can i move the config and errors directories out of the application directory and allow it to be used for each application sections? The only way i see this possible is if i modified the system files but i dont want to do that because updating is going to suck. If there is a better way of doing what i am trying to accomplish let me know as well. thanks

ps: Is what im trying to do referred to as modular?

  • 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-09T12:53:44+00:00Added an answer on June 9, 2026 at 12:53 pm

    You can always create symbolic links to your config and error folders in each of your apps:

    ln -s config frontapp/config
    ln -s config membersapp/config
    ln -s config adminapp/config
    
    ln -s errors frontapp/config
    ln -s errors membersapp/config
    ln -s errors adminapp/config
    

    The symlink will also carry over in popular versioning systems, such as git.

    This trick is also very useful for linking to different configurations files depending on environment:

    Dev: ln -s config-dev config
    Stage: ln -s config-stage config
    Production: ln -s config-prod config
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What is current directory of shell script? Is this current directory from which I
This is an example that searches PDF files in the current directory. import os,
For some user controls, I have this binding: AppLanguage={Binding Path=ApplicationLanguage, Source={x:Static Application.Current}} This works
I have a virtual directory setup in IIS6. This maps to a shared network
My Rails app is having trouble writing into it's public/ directory. I've setup nginx
We have this current database which we need to replace some tables by anther
I am having a bit of difficulty with this current code I have set
As a beginner in Ocaml, I have this current working code: ... let ch_in
Like this: Cursor.Current = Cursors.WaitCursor; try { . . . } finally { Cursor.Current
I'm running code that sometimes yields this: UInt32 current; int left, right; ... //sometimes

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.