public function __construct() { parent::__construct(); $this->load->model('Project_model'); $this->load->model('User_info'); $this->load->model('Project_member'); }
/** * Constructor */ function __construct() { parent::__construct(); // load the language file $this->lang->load('users'); // load the users model $this->load->model('users_model'); }
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'); } }
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'); }
function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->load->model('Discussion_model'); }
public function __construct() { parent::__construct(); $this->load->model('post_model'); }