123456789101112131415161718192021222324252627 |
- <?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');
- return $this->render('LeafletBundle:Leaflet:create_vector.html.twig', array(
- 'base_template' => $adminPool->getTemplate('layout'),
- 'admin_pool' => $adminPool,
- 'admin' => $adminPool->getAdminByClass("MapBundle\Entity\Map")
- ));
- }
- }
|