Ojs\JournalBundle\Controller\JournalThemeController::newAction PHP Метод

newAction() публичный Метод

Displays a form to create a new Theme entity.
public newAction ( )
    public function newAction()
    {
        $journal = $this->get('ojs.journal_service')->getSelectedJournal();
        if (!$this->isGranted('CREATE', $journal, 'theme')) {
            throw new AccessDeniedException("You are not authorized for view this page");
        }
        $entity = new JournalTheme();
        $entity->setJournal($journal);
        $form = $this->createCreateForm($entity);
        return $this->render('OjsJournalBundle:Theme:new.html.twig', array('entity' => $entity, 'form' => $form->createView()));
    }