Closed Sgnx closed 8 years ago
There is no official documentation, however you can review the Sonata's Bundles for example
Suppose I have an 'orders' admin class, tagged as sonata.admin.orders.
Then, how sould I add a side menu to show the orders of a user (knowing that the user has a $orders ArrayCollection).
I've tried this:
$menu->addChild(
$this->trans('sidemenu.link_view_comments'),
array('uri' => $admin->generateUrl('sonata.admin.orders', array('id' => $id)))
);
But this does not seem to work. I'm getting a bad route error. Is there any extra config that should be done?
Your code looks fine @pmartelletti . Have you configured your $user
as parent and added $orders
as child in your service classes?
Explained here: http://sonata-project.org/bundles/admin/master/doc/reference/architecture.html#create-child-admins
@Sgnx @pmartelletti Can we close this issue?
@webdevilopers feel free to do so. :smile:
I can't, but @rande can! ;)
Please close @Sgnx, @rande .
hi,
documentation says that there is a side menu option ? Do i have to configure it in config.yml ?
If anyone have a simple example it will work for me.