wallabag/src/WallabagBundle/Controller/EntryController.php

26 lines
619 B
PHP
Raw Normal View History

2015-01-22 16:18:56 +00:00
<?php
namespace WallabagBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use WallabagBundle\Repository;
class EntryController extends Controller
{
/**
* @Route("/unread", name="unread")
*/
public function unreadAction()
{
$repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
$entries = $repository->findUnreadByUser(1);
return $this->render(
'WallabagBundle:Entry:entries.html.twig',
array('entries' => $entries)
);
}
}