Bundle/BusinessPageBundle/Controller/BusinessTemplateController.php
public function listEntitiesAction(BusinessTemplate $view)
    {
        //services
        $bepHelper = $this->get('victoire_business_page.business_page_helper');

        //parameters for the view
        return $this->render('@VictoireBusinessPage/BusinessTemplate/listEntities.html.twig', [
            'BusinessTemplate' => $view,
            'items'            => $bepHelper->getEntitiesAllowed($view, $this->get('doctrine.orm.entity_manager')),
        ]);
    }
public function listEntitiesAction(BusinessTemplate $view)
    {
        //services
        $bepHelper = $this->get('victoire_business_page.business_page_helper');

        //parameters for the view
        return $this->render('@VictoireBusinessPage/BusinessTemplate/listEntities.html.twig', [
            'BusinessTemplate' => $view,
            'items'            => $bepHelper->getEntitiesAllowed($view, $this->get('doctrine.orm.entity_manager')),
        ]);
    }
public function listEntitiesAction ( BusinessTemplate $ view ) { //services $ bepHelper = $ this -> get ( 'victoire_business_page.business_page_helper' ) ; //parameters for the view return $ this -> render ( '@VictoireBusinessPage/BusinessTemplate/listEntities.html.twig' , [ 'BusinessTemplate' => $ view , 'items' => $ bepHelper -> getEntitiesAllowed ( $ view , $ this -> get ( 'doctrine.orm.entity_manager' ) ) , ] ) ; }
List the entities that matches the query of the BusinessTemplate.

@param BusinessTemplate $view

@Route("/listEntities/{id}", name="victoire_business_template_listentities")
@ParamConverter("id", class="VictoireBusinessPageBundle:BusinessTemplate")

@throws \Exception

@return Response The list of items for this template
List the entities that matches the query of the BusinessTemplate .