public function cleanup() { $productDAO = new ProductDAO(DataSource::getInstance()); $file_names = $productDAO->findAllPics(); $c = clean_upload_images($file_names); $this->registry->template->deleted_files = $c; $this->registry->template->tile_title = 'Dọn dẹp thư mục upload'; $this->registry->template->tile_content = 'admin/upload-cleanup.php'; $this->registry->template->show('admin/layout/admin.php'); }