public function listAction() { $lop = new Model_Lophoc(); $listLop = $lop->listlop(); $this->view->listlop1 = $listLop; foreach ($listLop as $a) { $idlop = $a->classes_id; $sb[$idlop] = $lop->dembuoi($idlop); } $this->view->sb = $sb; }