You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
790 B
30 lines
790 B
<?php |
|
class home extends CI_Controller { |
|
|
|
function __construct(){ |
|
parent::__construct(); |
|
$this->check_isvalidated(); |
|
} |
|
|
|
public function index() |
|
{ |
|
// Eerst de header laden. |
|
$this->load->view('header_view'); |
|
|
|
// Menu laden. |
|
$data['page'] = "home"; |
|
$this->load->view('menu_view', $data); |
|
|
|
$this->load->view('home_view'); |
|
|
|
// Als laatste de footer laden. |
|
$this->load->view('footer_view'); |
|
} |
|
|
|
private function check_isvalidated(){ |
|
if(! $this->session->userdata('validated')){ |
|
redirect('welcome'); |
|
} |
|
} |
|
|
|
} |