src/Flowcode/DashboardBundle/Controller/DefaultController.php
public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();
        $mostViewed = $em->getRepository("AmulenPageBundle:Page")->getMostViewed(5);
        $viewCount = $em->getRepository("AmulenPageBundle:Page")->getTotalViewedCount();

        $today = date("d/m/Y H:m");

        return $this->render('FlowcodeDashboardBundle:Default:index.html.twig', array(
            "datime" => $today,
            "mostViewed" => $mostViewed,
            "viewCount" => $viewCount,
        ));
    }
public function indexAction()
    {
        $em = $this->getDoctrine()->getManager();
        $mostViewed = $em->getRepository("AmulenPageBundle:Page")->getMostViewed(5);
        $viewCount = $em->getRepository("AmulenPageBundle:Page")->getTotalViewedCount();

        $today = date("d/m/Y H:m");

        return $this->render('FlowcodeDashboardBundle:Default:index.html.twig', array(
            "datime" => $today,
            "mostViewed" => $mostViewed,
            "viewCount" => $viewCount,
        ));
    }
Main Dashboard.

@Route("/", name="admin_dashboard")
@Method("GET")
@Template()