Ojs\JournalBundle\Controller\BoardController::newAction PHP Method

newAction() public method

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