From d8d4279c69f76b2de9d452a84f9bc8434b946ca5 Mon Sep 17 00:00:00 2001 From: atomaka Date: Sun, 6 Nov 2011 01:05:36 -0400 Subject: [PATCH] Add functionality for displaying the last added screen. --- application/controllers/view.php | 7 +++++++ 1 file changed, 7 insertions(+) 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