Beispiel #1
0
 function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->helper('iniantibacklooh');
     $this->load->model('Daftar_kelompok');
     $this->load->model('Daftar_peserta_kkm');
     backButtonHandle();
     $this->load->helper(array('url', 'html', 'form'));
 }
Beispiel #2
0
 public function index()
 {
     backButtonHandle();
     if ($this->session->userdata('email') == "" and $this->session->userdata('username') == "") {
         redirect('register');
     }
     $id_user = $this->session->userdata('id_user');
     $data['id_user'] = $this->session->userdata('id_user');
     $data['id'] = $this->model_add->getMax();
     $data['allproducts'] = $this->model_add->getmyproducts($id_user);
     $this->admin->load('template', 'index', $data);
 }
Beispiel #3
0
 public function index()
 {
     backButtonHandle();
     if ($this->session->userdata('id_user') == "") {
         redirect('register');
     }
     $id_user = $this->session->userdata('id_user');
     $data['images'] = $this->model_register->getimagestopright($id_user);
     //get images login using media sosial
     $data['id_user'] = $this->session->userdata('id_user');
     $data['id'] = $this->model_add->getMax();
     $this->admin->load('template', 'index', $data);
 }