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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:35:54+00:00 2026-05-28T04:35:54+00:00

I am new to symfony2 and and now i have installed Sonata Admin bundle.

  • 0

I am new to symfony2 and and now i have installed Sonata Admin bundle.
I am reading their documentaion but its not clear what should i do after installing it.

How should i start. I mean there is no example where i can start learning how to use that bundle. Can anyone please help me with this

  • 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-28T04:35:54+00:00Added an answer on May 28, 2026 at 4:35 am

    Follow this installation instruction: http://sonata-project.org/bundles/admin/master/doc/reference/installation.html
    Then you have to create a new Admin class that references an existing entity class of your bundle: http://sonata-project.org/bundles/admin/master/doc/reference/getting-started.html

    Please add more specific question if you want further support, thanks!

    —
    EDIT:

    You can declare it wherever you want. Just notice that it has to extend base Admin class and must be a service tagged with ‘sonata.admin’. IE:

    namespace Acme\FooBundle\Admin;
    
    use Sonata\AdminBundle\Admin\Admin;
    
    class FooAdmin extends Admin
    {
    }
    

    and in services.xml of your bundle you have to add the declaration of the service:

    <container xmlns="http://symfony.com/schema/dic/services"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
        <services>
            <service id="sonata.admin.foo" class="Acme\FooBundle\Admin\FooAdmin">
                <tag name="sonata.admin" manager_type="orm" group="Foos" label="Foo"/>
                <argument />
                <argument>Acme\FooBundle\Entity\Foo</argument>
                <argument>SonataAdminBundle:CRUD</argument>
            </service>
        </services>
    </container>
    

    Whenever you have the class and the declaration, if your setup is correct, you will see the new link in the Admin Dashboard of Sonata (it should be at the url /admin).

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

Sidebar

Related Questions

I have a Symfony2 project with its own database, and now I want to
I've been using Symfony for a long time but I'm new to Symfony2. After
Right now I'm using Doctrine2 in conjunction with Symfony2. I have an entity called
I have used Symfony 1.4 since it's release, but I now have the option
I have symfony 1.4 installed and had setup my own user model (table). Now,
I have tested symfony and started with 2.0 now the new 2.0.1 version it
i create my new site. Now i learn and use Symfony. I have few
I want to use SwiftMailer in Symfony2. To start with, I created a new
I am new to symfony. I have created a registration form using the code:
Everyday is a new day with Symfony, but I'm loving it! This morning I

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.