Easyadminbundle: Custom Homepage dashboard

Created on 14 Oct 2016  路  3Comments  路  Source: EasyCorp/EasyAdminBundle

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

Most helpful comment

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' %}

All 3 comments

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.

http://toihid.com/?p=316

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SirMishaa picture SirMishaa  路  3Comments

javiereguiluz picture javiereguiluz  路  4Comments

devkbsc picture devkbsc  路  3Comments

Wait4Code picture Wait4Code  路  3Comments

tamert picture tamert  路  3Comments