public function home() { $manager = new QuestionManager(); $manager2 = new TagManager(); $manager3 = new ProfilManager(); $questions = $manager->getAllQuestions(); $tags = array(); foreach ($questions as $value) { $tags[] = $manager2->getTags($value['id']); } $profils = $manager3->getAllUsers(); $this->show('default/home', ['questions' => $questions, 'tags' => $tags, 'profils' => $profils]); }