예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Project_model');
     $this->load->model('User_info');
     $this->load->model('Project_member');
 }
예제 #2
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     // load the language file
     $this->lang->load('users');
     // load the users model
     $this->load->model('users_model');
 }
예제 #3
0
파일: users.php 프로젝트: NaN1984/task
 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');
     }
 }
예제 #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');
 }
예제 #6
0
 function __construct()
 {
     parent::__construct();
 }
예제 #7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Discussion_model');
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('post_model');
 }