示例#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');
 }