Hello,
For over an hour I try to create a custom administrative homepage. I do not know how to do 馃槴 .
Unrecognized option "homepage" under "easy_admin"
I tried these solutions
Without success
I have successful custom the dashboard.
For those who want help
// Override Controller
class AdminController extends BaseAdminController
{
/**
* @Route("/", name="easyadmin")
* @Route("/", name="admin")
* @param Request $request
* @return \Symfony\Component\HttpFoundation\Response
*/
public function indexAction(Request $request)
{
$this->initialize($request);
if (null === $request->query->get('entity')) {
return $this->render('AdminBundle:Default:dashboard.html.twig');
}
return parent::indexAction($request);
}
# routing.yml
easy_admin_bundle:
resource: "@AdminBundle/Controller/AdminController.php"
type: annotation
prefix: /admin/
and view :
{# dashboard.html.twig #}
{% extends '@EasyAdmin/Default/layout.html.twig' %}
does this for you ?? where you put class AdminController ?under AppBundlecontroller !
You can see this solution that is worked for me.
Most helpful comment
I have successful custom the dashboard.
For those who want help
and view :