public function viewAction($id)
{
$journal = $this->get('ojs.journal_service')->getSelectedJournal();
if (!$this->isGranted('VIEW', $journal, 'issues')) {
throw new AccessDeniedException("You are not authorized for view this journal's issue!");
}
$em = $this->getDoctrine()->getManager();
/** @var Issue $issue */
$issue = $em->getRepository('OjsJournalBundle:Issue')->find($id);
$this->throw404IfNotFound($issue);
/** @var ArticleRepository $repo */
$repo = $em->getRepository('OjsJournalBundle:Article');
$articles = $repo->getOrderedArticlesByIssue($issue, true);
return $this->render('OjsJournalBundle:Issue:view.html.twig', array('articles' => $articles, 'journal' => $journal, 'issue' => $issue));
}