Esempio n. 1
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Project_model');
     $this->load->model('User_info');
     $this->load->model('Project_member');
 }
Esempio n. 2
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // load the language file
     $this->lang->load('users');
     // load the users model
     $this->load->model('users_model');
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     $this->load->model('user_model');
     $this->load->helper('url');
     $this->load->library('form_validation');
     $this->update_config = array(array('field' => 'name', 'label' => 'ФИО', 'rules' => 'trim|required|min_length[3]|max_length[50]'), array('field' => 'email', 'label' => 'Email', 'rules' => 'trim|required|valid_email|is_unique_with_id[users.email.id!=.' . $this->user_model->getUserId() . ']'), array('field' => 'login', 'label' => 'Логин', 'rules' => 'trim|required|alpha_dash|is_unique_with_id[users.login.id!=.' . $this->user_model->getUserId() . ']'), array('field' => 'password', 'label' => 'Пароль', 'rules' => 'min_length[5]|alpha_dash'), array('field' => 'password_confirmation', 'label' => 'Подтверждение пароля', 'rules' => 'matches[password]'));
 }
 function __construct()
 {
     parent::__construct();
     $this->data['page']['type'] = 'Admin';
     if (!$this->ion_auth->is_admin()) {
         $this->message->set('error', 'Administrator Access Required');
         redirect('auth/login');
     }
 }
Esempio n. 5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Project_model');
     $this->load->model('Project_member');
     $this->load->model('Discussion_model');
     $this->load->model('Todo_model');
     $this->load->helper('cookie');
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
 }
Esempio n. 7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Discussion_model');
 }
Esempio n. 8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('post_model');
 }