get('sonata.admin.pool'); $uid = time(); return $this->render('LeafletBundle:Leaflet:create_vector.html.twig', array( 'base_template' => $adminPool->getTemplate('layout'), 'admin_pool' => $adminPool, 'admin' => $adminPool->getAdminByClass("MapBundle\Entity\Map"), 'uid' => $uid )); } public function saveVectorAction(Request $request) { print_r($request->request->all()); die; // $adminPool = $this->get('sonata.admin.pool'); // $uid = time(); // return $this->render('LeafletBundle:Leaflet:create_vector.html.twig', array( // 'base_template' => $adminPool->getTemplate('layout'), // 'admin_pool' => $adminPool, // 'admin' => $adminPool->getAdminByClass("MapBundle\Entity\Map"), // 'uid' => $uid // )); } }