public function indexAction($access)
    {
        $em = $this->getDoctrineManager();
        $sf = $this->container->get('sakonnin.files');
        // Todo: paging or just show the last 20
        $files = $sf->getFilesForLoggedIn();

        if ($this->isRest($access)) {
            return $this->returnRestData($request, $files, array('html' =>'file:_index.html.twig'));
        }
        return $this->render('BisonLabSakonninBundle:SakonninFile:index.html.twig',
            array('files' => $files));
    }
public function indexAction($access)
    {
        $em = $this->getDoctrineManager();
        $sf = $this->container->get('sakonnin.files');
        // Todo: paging or just show the last 20
        $files = $sf->getFilesForLoggedIn();

        if ($this->isRest($access)) {
            return $this->returnRestData($request, $files, array('html' =>'file:_index.html.twig'));
        }
        return $this->render('BisonLabSakonninBundle:SakonninFile:index.html.twig',
            array('files' => $files));
    }
public function indexAction ( $ access ) { $ em = $ this -> getDoctrineManager ( ) ; $ sf = $ this -> container -> get ( 'sakonnin.files' ) ; // Todo: paging or just show the last 20 $ files = $ sf -> getFilesForLoggedIn ( ) ; if ( $ this -> isRest ( $ access ) ) { return $ this -> returnRestData ( $ request , $ files , array ( 'html' => 'file:_index.html.twig' ) ) ; } return $ this -> render ( 'BisonLabSakonninBundle:SakonninFile:index.html.twig' , array ( 'files' => $ files ) ) ; }
Lists all file entities.

@Route("/", name="file_index", methods={"GET"})
Lists all file entities .