Modified based on the teacher’s gradeList
public function imgList()
{
$Image = img_tb::all();
$count = img_tb::count ( ); $value->name,
] = $data;
}
$this->view->assign('imgList',$ImgList);
$this->view->assign('count',$ count);
//Render image list template
return $this -> fetch('img_list');
}