Add functionality for displaying the last added screen.
This commit is contained in:
parent
e12e876805
commit
d8d4279c69
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue