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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:30:31+00:00 2026-05-27T03:30:31+00:00

May I change the default Symfony2 structure to fit my needs? I like the

  • 0

May I change the default Symfony2 structure to fit my needs?
I like the follow structure, but don’t know how to get it to working..

core/ <- Symfony2 core files
app/ <- All applications
app/Acme/ <- Application for Acme enterprise (with all bundles..)
app/clientone.com/ <- Application for Client One enterprise (with all bundles..)
  • 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-27T03:30:32+00:00Added an answer on May 27, 2026 at 3:30 am

    Inside symfony2 distribution there are 4 main directories:

    • app (there are customisations to your app)
    • vendors (symfony and other libraries)
    • src (your source code which may or may not to be application specific,
      there could be bundle ClientoneBundle which is specific to only this application,
      but also could be a bundle reused among your applications,- such as UserBundle)
    • web (http document root)

    So if you have several applications you could keep vendors separately. And each of your application may contain three directories like:
    – apps/acme/app
    – apps/acme/src
    – apps/acme/web
    – apps/clientone/app
    – apps/clientone/src
    – apps/clientone/web
    – some/where/else/in/filesystem/vendor

    To implement such setup is very easy,- all you have to do is edit your autoload.php (which resides in app dir), just replace everywhere __DIR__.'/../vendor to __DIR__.'/../vendor,
    in other words, tell symfony2 that you moved vendors somewhere else.

    (I just renamed app directory in your setup to apps – to be not confused with app directory, inside each of your application)

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

Sidebar

Related Questions

I don't know what I'm doing wrong, but my session data won't change even
how may I change the default IdentifierGenerator in Hibernate. I know i can specify
I'm trying to refer to a drive whose letter may change. I'd like to
How may I modify a XML file without any change like attributes ordering, tag
I would like to change the default behavior of Zend_Form, so that whenever the
I'm using sqlalchemy (with sqlite for now, but this may change later) to build
I have a performance counter category. The counters in this category may change for
I may be asking the wrong question here, I'm willing to change it if
According to the (in)famous iPhone Developer Program License Agreement change 3.3.1 — Applications may
May be I am getting old, but I can't find it...

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.