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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T16:13:35+00:00 2026-06-17T16:13:35+00:00

I have regrouped the following information from a few examples in the SonataAdminBundle documentation.

  • 0

I have regrouped the following information from a few examples in the SonataAdminBundle documentation. Please correct me if there are some errors, but here is what I get in the case of a BlogBundle:

Frontend and Backend files are mixed in the same bundle

As you can see, in general, each bundle contains both frontend and backend classes.

It seems very messy to mix both frontend and backend in the same folders somtetimes (see Controllers), but to be honest I can’t think of an other way…

I actually started handling backend in a separate bundle but then realised that it was also too messy.

So in practice, do people really follow this architecture? Is this the only/best way to handle backend when using SonataAdminBundle?

This beautiful post here is using a different approach…any ideas what I should do to make sure the code doesn’t get too messy.

  • 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-17T16:13:35+00:00Added an answer on June 17, 2026 at 4:13 pm

    Simple: use folders within locations of mixed content. I put frontend components directly in their respective folders, and add Admin folders for backend files.

    You can refer to e.g. a controller in the Admin subfolder like this BlogBundle:Admin\Concert:index, essentially the same works for templates.

    On configuration, you could create a config-frontend.yml and a config-backend.yml file, then include it in the original config.yml file. I don’t do that though.

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

Sidebar

Related Questions

Have a recurring situation, petty I know, but I'd like to consolidate the following:
have a nice day. I got problem when trying to create an image from
Have a photography site that I want to prevent image copying from. How can
Have a problem that seems easy on paper but i'm having a big problem
Have the following cronjob set up in root's crontab: (centos 5.x) 2 * *
I'm a beginner in SQL and I have the following problem in SQL. I
I'd like to regroup my array. I have the following: Array ( [0] =>
Have the following code: $(#blogs).mouseover( function () { $(this).addClass(hover); $(#home).removeClass(hover); $(#homepages).removeClass(hover); $(#apps).removeClass(hover); $(#facebook).removeClass(hover); $(#kontakt).removeClass(hover);
Have added designer extensions to EDMX designer which allow me to specify additional information
Have a large amount of HTML, but where I thought the bottleneck would be

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.