Display the Sonata Admin Bundle inside a view of a Symfony Bundle

user2474622

My question is simple but I don't think that the answer is. I'll try to be clear as possible.

I have the Sonata Admin Bundle, that allows me edit or view tables, etc. It's ok.

I also have a custom bundle (where my main app is). The interface of this bundle has been created with twig calling javascript. Basically, the interface is composed by three parts :
• a header with buttons
• a "center region" that is changed dynamically, depends on which buttons you click on
• a footer in the bottom, that display standard informations like mail, website, etc.

My bundle is accessible through url/app_dev.php/homescreen
The Sonata admin interface is accessible through url/app_dev.php/admin/dashboard

Now, what I would like to do, is to be able to "charge" the admin interface powered by Sonata inside the center region of my bundle. But as you don't manage the routing in Sonata because he is generated automatically, how could I make it works ?

The best would be to only display a part of the Sonata Admin Interface (for example, a grid list of table without the Sonata's header, etc).

If anyone knows some tips about it, it would be gladly appreciated ! I hope I'm clear as possible.

If needed I can provide codes/further informations.

Thanks.

user2474622

I finally found myself the answer.

The best way is to do an AJAX request from ExtJS that call a Sonata's URL.
Be careful with all the html contents of the Sonata's twig, because it can cause issues when displaying in your app's pages (example : you are requesting html codes that contains header when your page has already one).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

sonata admin bundle symfony

From Dev

Batch actions with Sonata Admin Bundle on Symfony

From Dev

Sonata admin bundle , Symfony2

From Dev

How to display a photo in Sonata Admin Bundle

From Dev

Show sidebar in show view - Sonata admin bundle

From Dev

Show sidebar in show view - Sonata admin bundle

From Dev

how to override a css of sonata admin bundle in symfony2

From Dev

The show action of Symfony 2 Sonata Admin Bundle is not working

From Dev

Symfony 2.3.6 and Sonata Admin Bundle : Empty dashboard and no errors

From Dev

Symfony2 and Sonata Admin Bundle - filter timestamp displayed as date

From Dev

Symfony2 and Sonata Admin Bundle - filter timestamp displayed as date

From Dev

Symfony2 Best Practices Editable text sonata admin bundle

From Dev

How to upload image and display on edit of profile using sonata admin bundle

From Dev

Sonata Admin Bundle: show total count of collection on list view

From Dev

Add new Button in the List view of sonata admin Bundle

From Dev

how to include an entity join in sonata bundle admin list view

From Dev

Use tags in Sonata Admin Bundle

From Dev

Configure Menu in Sonata Admin Bundle

From Dev

Conflicts with sonata admin bundle and LiipFunctionalTestBundle

From Dev

Sonata Admin Bundle - String Validation

From Dev

List Images in sonata admin bundle

From Dev

Use tags in Sonata Admin Bundle

From Dev

Sonata Admin Bundle configureRoutes getPersistentParameters

From Dev

Conflicts with sonata admin bundle and LiipFunctionalTestBundle

From Dev

CKEditor not showing with Sonata Formatter (Sonata Admin Bundle)

From Dev

Sonata Media Bundle with Sonata Admin Bundle 3.0 (or 2.4)

From Dev

Symfony 2 Sonata Media bundle: saving media file image without sonata admin

From Dev

Sonata User Bundle + Admin Bundle admin redirect after login

From Dev

Sonata admin bundle : unable to remove relation with sonata_type_admin

Related Related

  1. 1

    sonata admin bundle symfony

  2. 2

    Batch actions with Sonata Admin Bundle on Symfony

  3. 3

    Sonata admin bundle , Symfony2

  4. 4

    How to display a photo in Sonata Admin Bundle

  5. 5

    Show sidebar in show view - Sonata admin bundle

  6. 6

    Show sidebar in show view - Sonata admin bundle

  7. 7

    how to override a css of sonata admin bundle in symfony2

  8. 8

    The show action of Symfony 2 Sonata Admin Bundle is not working

  9. 9

    Symfony 2.3.6 and Sonata Admin Bundle : Empty dashboard and no errors

  10. 10

    Symfony2 and Sonata Admin Bundle - filter timestamp displayed as date

  11. 11

    Symfony2 and Sonata Admin Bundle - filter timestamp displayed as date

  12. 12

    Symfony2 Best Practices Editable text sonata admin bundle

  13. 13

    How to upload image and display on edit of profile using sonata admin bundle

  14. 14

    Sonata Admin Bundle: show total count of collection on list view

  15. 15

    Add new Button in the List view of sonata admin Bundle

  16. 16

    how to include an entity join in sonata bundle admin list view

  17. 17

    Use tags in Sonata Admin Bundle

  18. 18

    Configure Menu in Sonata Admin Bundle

  19. 19

    Conflicts with sonata admin bundle and LiipFunctionalTestBundle

  20. 20

    Sonata Admin Bundle - String Validation

  21. 21

    List Images in sonata admin bundle

  22. 22

    Use tags in Sonata Admin Bundle

  23. 23

    Sonata Admin Bundle configureRoutes getPersistentParameters

  24. 24

    Conflicts with sonata admin bundle and LiipFunctionalTestBundle

  25. 25

    CKEditor not showing with Sonata Formatter (Sonata Admin Bundle)

  26. 26

    Sonata Media Bundle with Sonata Admin Bundle 3.0 (or 2.4)

  27. 27

    Symfony 2 Sonata Media bundle: saving media file image without sonata admin

  28. 28

    Sonata User Bundle + Admin Bundle admin redirect after login

  29. 29

    Sonata admin bundle : unable to remove relation with sonata_type_admin

HotTag

Archive