diff --git a/application/controllers/view.php b/application/controllers/view.php index 606c26c..29f3d0c 100644 --- a/application/controllers/view.php +++ b/application/controllers/view.php @@ -52,4 +52,11 @@ class View extends CI_Controller { redirect('/view/specific/' . $id); } + + public function latest() { + $this->load->model('fileupload'); + $total_uploads = $this->fileupload->count_uploads(); + + redirect('/view/specific/' . $total_uploads); + } } \ No newline at end of file