src/Slashworks/AppBundle/Controller/RemoteAppController.php
public function indexDataAction(Request $request)
        {

            $aRemoteApps = RemoteAppQuery::create()->find();
            $sResult     = $this->renderView('SlashworksAppBundle:RemoteApp:data.json.twig', array(
                'entities' => $aRemoteApps,
            ));

            $response = new Response($sResult);
            $response->headers->set('Content-Type', 'application/json');

            return $response;

        }
public function indexDataAction(Request $request)
        {

            $aRemoteApps = RemoteAppQuery::create()->find();
            $sResult     = $this->renderView('SlashworksAppBundle:RemoteApp:data.json.twig', array(
                'entities' => $aRemoteApps,
            ));

            $response = new Response($sResult);
            $response->headers->set('Content-Type', 'application/json');

            return $response;

        }
public function indexDataAction ( Request $ request ) { $ aRemoteApps = RemoteAppQuery :: create ( ) -> find ( ) ; $ sResult = $ this -> renderView ( 'SlashworksAppBundle:RemoteApp:data.json.twig' , array ( 'entities' => $ aRemoteApps , ) ) ; $ response = new Response ( $ sResult ) ; $ response -> headers -> set ( 'Content-Type' , 'application/json' ) ; return $ response ; }
Get data as json for remoteapp-list

@param \Symfony\Component\HttpFoundation\Request $request

@return \Slashworks\AppBundle\Controller\Response
Get data as json for remoteapp - list