__construct() public method

Create a new Controller instance.
public __construct ( )
Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->config->set_item(array('view', 'wrap'), true);
     $this->config->set_item(array('view', 'header'), 'main/common/header.php');
     $this->config->set_item(array('view', 'footer'), 'main/common/footer.php');
     $this->_init();
 }
Esempio n. 2
0
 public function __construct()
 {
     parent::__construct();
     if (Auth::petugas() == null) {
         header("Location: " . base . "/Auth");
     } else {
         $this->petugas = Auth::petugas();
     }
 }
Esempio n. 3
0
 public function __construct($login = true)
 {
     parent::__construct();
     $this->config->set_item(array('view', 'wrap'), true);
     $this->config->set_item(array('view', 'header'), 'main/common/header.php');
     $this->config->set_item(array('view', 'footer'), 'main/common/footer.php');
     $this->_init();
     if ($login) {
         $this->_check_login();
     }
     if (UserSession::get('user')) {
         $this->_display->attach('notifications', (new Notify())->get_all(UserSession::get('user._id')));
     }
 }
Esempio n. 4
0
 public function __construct()
 {
     parent::__construct();
 }
Esempio n. 5
0
 function __construct()
 {
     parent::__construct();
     $this->petugas = Auth::petugas();
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
     $this->categories = Category::all();
 }
Esempio n. 7
0
 function __construct()
 {
     parent::__construct();
     $this->view->render('error/404');
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->output->contentType('text', 'UTF-8');
 }