Пример #1
0
 function Login()
 {
     parent::controller();
     $this->load->library('session');
     $this->load->database();
     $this->load->model('Kalkun_model');
 }
Пример #2
0
 public function __construct()
 {
     parent::controller();
     $functionality = $this->config->item('functionality');
     if ($functionality['shop'] === false) {
         show_404();
     }
 }
Пример #3
0
 function __construct()
 {
     parent::controller();
     $this->login_model->check_login(array_keys($this->login_model->categories));
     $this->current_user = $this->session->userdata('logged_in_user');
     $this->load->model('data_model');
     $this->load->model('news_model');
     $this->load->helper('text');
 }
Пример #4
0
 function auth()
 {
     # We can load other resources here
     parent::controller();
     # Pre-Auth Check
     $this->auth_data = $this->auth->is_authenticated();
     $this->token_data = $this->auth_data['token_data'];
     if ($this->auth_data['is_authenticated'] == 0) {
         $this->is_authenticated = 0;
     } else {
         $this->is_authenticated = 1;
     }
 }
 function __construct()
 {
     parent::controller();
     $this->load->model('Contact_Model');
 }
Пример #6
0
 function Delete()
 {
     parent::controller();
     $this->load->model("delete_m", "m");
 }
Пример #7
0
 function Daemon()
 {
     // Commented this for allow access from other machine
     // if($_SERVER['REMOTE_ADDR']!='127.0.0.1') exit("Access Denied.");
     parent::controller();
 }
 function __construct()
 {
     parent::controller();
     $this->load->model('members_model');
 }
Пример #9
0
 function Admin()
 {
     parent::controller();
 }
Пример #10
0
Файл: index.php Проект: h19e/fw
 public static function getInstance()
 {
     if (!isset(self::$controller)) {
         self::$controller = new Controller();
     }
     return self::$controller;
 }
 function __construct()
 {
     parent::controller();
     $this->load->model('Banner_Model');
     $this->load->model('Home_Model');
 }
 function __construct()
 {
     parent::controller();
 }
Пример #13
0
 function __construct()
 {
     parent::controller();
     // Load the public frame
 }
 function __construct()
 {
     parent::controller();
     $this->load->model('podcasts_model');
 }
Пример #15
0
 function Backend()
 {
     parent::controller();
     $this->load->model("backend_m", "m");
 }
	public static function getController(){
		if (empty(Controller::$controller)) Controller::$controller = new Controller();
		return Controller::$controller;
	}