I'm quite new to the Sonata project, and as "playing" with it, I wanted to use it for one of my projects.
But there are a few questions that still remains for me about Sonata and the way it works and can be customized.
Here are they :
- Is it possible to use a custom controller to display the Dashboard "home"?
I'd like to use roles and only roles to manage my security but can't figure out how to add Roles to the list that is displayed when you use the users creation form (by default located at
/admin/my/bundle/user/create
) under the "management" tab. Is it possible? Screen to explain more :If yes, if anyone has hints about how to do this, they are welcome! :)
- Using this roles means managing the rights of these ones on my objects / controller. Is there any mechanism bundled for that or do I have to add mine?
In symfony you can customize third party bundle by inheriting that bundle. So to use your own controller do the followings step by step:
In your custom bundle:
AcmeDemoBundle.php
add:Now your bundle is inheriting
SonataAdminBundle
.In your custom controller:
AcmeDemoBundleCustomController.php