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

  • SEARCH
  • Home
  • 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 603853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:58:34+00:00 2026-05-13T16:58:34+00:00

I have way too many modules in my application. Currently my modules are namespaced,

  • 0

I have way too many modules in my application. Currently my modules are namespaced, but what I’d like to do is have a directory structure so I can get rid of this redundant and annoying namespacing.

For instance, for modules named “xModule1, xModule2, xModule3”, I’d like to have a directory structure like this:

-x
  -module1
    -actions and templates
  -module2
    -actions and templates
  -module3
    - actions and templates

Surely the developers at symfony know that people would like to use their framework to develop large applications. So how is module organization like this done?

I’ve done a lot of work in Java/Spring, and because source is component scanned, you can arrange your controllers and jsp files in nicely organized hierarchies. Is this somehow possible with Symfony?

  • 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-05-13T16:58:34+00:00Added an answer on May 13, 2026 at 4:58 pm

    No, this is not possible with Symfony. The structure of your modules and their actions and templates is expected in a fixed file system layout and I haven’t heard anything about that changing.

    I’ve run into the same problem you’re facing where a very large site ended up with 30+ modules in a single application. At first it seemed cumbersome but after dealing with it for a while I found that the single location to search for a specific module was in fact beneficial instead of having to guess through sub-structures until I got what I was after. Seeing that structure grow and grow also pushes me to respect adding new modules only when it’s absolutely necessary, folding new functionality into existing modules and refactoring existing modules to work with new enhancements whenever possible.

    Symfony does have auto-loading features that will work for your library folders however, allowing you to have lib/one/two/three/Object.class.php or any other structure you see fit.

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

Sidebar

Related Questions

I feel like I have to use way too many .children() in some of
I have a ListBox with way too many items in it and the UI
I have a drupal based website with too many enabled modules, and i need
So I have some code that has way too many of these in it
I have a form on the page. It has too many things like checkboxes
I have a webpage that is taking way too long and need to optimize
I want my app to loop in python but have a way to quit.
Anybody have a slicker way to do this? Seems like it should be easier
Hi I have a file that consists of too many columns to open in
We have a huge code base, where methods with too many local variables alone

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.