Exemple #1
0
 /**
  * @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();
 }
Exemple #2
0
 public function __construct()
 {
     $child = get_class($this);
     $this->childClass = array('namespaceArray' => explode('\\', $child), 'namespaceString' => $child);
     $this->configMain = Resources\Config::main();
     $this->uri = new Resources\Uri();
     $this->settings = new Models\Settings();
     $this->themeName = $this->settings->all()->theme;
 }
Exemple #3
0
 /**
  * @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');
     }
 }
Exemple #4
0
 /**
  * @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');
     }
 }
 public function testConfigCostumeArray()
 {
     $this->assertTrue(is_array(\Resources\Config::myowncfg()));
 }