/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-01 08:00:18 **/ function __construct() { parent::__construct(); $this->m_matkul = new Models\M_matkul(); $this->m_materi = new Models\M_materi(); $this->konfig = Resources\Config::website(); }
/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-05 20:55:41 **/ function __construct() { parent::__construct(); // Load library $this->session = new Resources\Session(); $this->request = new Resources\Request(); // Load Models $this->admin = new Models\M_admin(); // Load konfigurasi $this->konfig = Resources\Config::website(); // cek login admin session if (!$this->session->getValue('isAdmin')) { $this->redirect('admin/login'); } }
/** * @Author : Localhost {Ferdhika Yudira} * @Email : fer@dika.web.id * @Web : http://dika.web.id * @Date : 2015-12-06 12:33:59 **/ function __construct() { parent::__construct(); // Load library $this->session = new Resources\Session(); $this->request = new Resources\Request(); // Load model $this->m_admin = new Models\M_admin(); // Load konfigurasi website $this->konfig = Resources\Config::website(); if (!$this->session->getValue('isAdmin')) { $this->redirect('admin/login'); } if ($this->session->getValue('hak') != 1) { $this->redirect('admin'); } }