public function ArticleTypesSettingsAction() { $em = $this->getDoctrine()->getManager(); $journal = $this->get("ojs.journal_service")->getSelectedJournal(false); $this->throw404IfNotFound($journal); if (!$this->isGranted('EDIT', $journal)) { throw new AccessDeniedException("You not authorized for this page!"); } $form = $this->createArticleTypesEditForm($journal); return $this->render('OjsJournalBundle:Manager:article_types.html.twig', array('entity' => $journal, 'form' => $form->createView())); }