I am new with symfony2 and SonataAdminBundle.
I have added 3 entities to the SonataAdminBundle Dashboard and they appear successfully.
The Entities appear w
I had troubles with method execute (I am using Sonata 2.3.x ). Here is the code that works for me.
Note BlockContextInterface and $blockContext->getBlock() :
public function execute(BlockContextInterface $blockContext, Response $response = null)
{
// merge settings
$settings = array_merge($this->getDefaultSettings(), $blockContext->getSettings());
return $this->renderResponse('bundleName:Block:templateName.html.twig', array(
'block' => $blockContext->getBlock(),
'settings' => $settings
), $response);
}