/** * A place where the editors can type in data so we dont have to. * */ public function newQuizCategoryAction() { $subjects = $this->subjectRepository->findAll(); if ($this->request->hasArgument('show') && $this->request->getArgument('show')) { $subjectId = $this->request->getArgument('show'); $categories = $this->quizCategoryRepository->findByParentCategoryAndSubjectSortBySubject(NULL, $subjectId, 'ASC'); } else { $categories = $this->quizCategoryRepository->findByParentCategory(NULL); } $this->view->assign('subjects', $subjects); $this->view->assign('categories', $categories); }