questions = $questions; $this->javascript(); $this->displayList(); $this->displayEditPanel(); } private function javascript() { ?>
displayForm(); ?>
questionCategorySelect(); ?>
questions as $question) { $category = $question->category; if (! array_search($category, $categories)) // if not in categories { array_push($categories, $category); } } // You might want to escape quotes and stuff here foreach ($categories as $category) { ?> questions as $question) { ?>