<?php
-namespace WallabagBundle\Controller;
+namespace Wallabag\CoreBundle\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\HttpFoundation\Request;
-use WallabagBundle\Repository;
-use WallabagBundle\Entity\Entries;
+use Wallabag\CoreBundle\Repository;
+use Wallabag\CoreBundle\Entity\Entries;
use Wallabag\Wallabag\Tools;
use Wallabag\Wallabag\Url;
return $this->redirect($this->generateUrl('homepage'));
}
- return $this->render('WallabagBundle:Entry:new.html.twig', array(
+ return $this->render('WallabagCoreBundle:Entry:new.html.twig', array(
'form' => $form->createView(),
));
}
*/
public function showUnreadAction()
{
- $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
+ $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
$entries = $repository->findUnreadByUser(1, 0);
return $this->render(
- 'WallabagBundle:Entry:entries.html.twig',
+ 'WallabagCoreBundle:Entry:entries.html.twig',
array('entries' => $entries)
);
}
*/
public function showArchiveAction()
{
- $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
+ $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
$entries = $repository->findArchiveByUser(1, 0);
return $this->render(
- 'WallabagBundle:Entry:entries.html.twig',
+ 'WallabagCoreBundle:Entry:entries.html.twig',
array('entries' => $entries)
);
}
*/
public function showStarredAction()
{
- $repository = $this->getDoctrine()->getRepository('WallabagBundle:Entries');
+ $repository = $this->getDoctrine()->getRepository('WallabagCoreBundle:Entries');
$entries = $repository->findStarredByUser(1, 0);
return $this->render(
- 'WallabagBundle:Entry:entries.html.twig',
+ 'WallabagCoreBundle:Entry:entries.html.twig',
array('entries' => $entries)
);
}
public function viewAction(Entries $entry)
{
return $this->render(
- 'WallabagBundle:Entry:entry.html.twig',
+ 'WallabagCoreBundle:Entry:entry.html.twig',
array('entry' => $entry)
);
}