123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- <?php
- namespace LeafletBundle\Controller;
- use Symfony\Bundle\FrameworkBundle\Controller\Controller;
- use Symfony\Component\Workflow\Exception\ExceptionInterface;
- use Symfony\Component\HttpFoundation\Request;
- use Symfony\Component\HttpFoundation\Response;
- use Sonata\AdminBundle\Admin\Pool;
- class LeafletController extends Controller
- {
-
- public function createVectorAction(Request $request)
- {
- $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
- ));
- }
- 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
- // ));
- }
- }
|