public function index() { permissionAdmin(); $groups = $this->ion_auth->groups()->result_array(); $this->data['groups'] = $groups; $this->data['full_name'] = array('name' => 'full_name', 'id' => 'full_name', 'type' => 'text'); $this->data['username'] = array('name' => 'username', 'id' => 'username', 'type' => 'text'); $this->data['email'] = array('name' => 'email', 'id' => 'email', 'type' => 'text'); $this->data['phone'] = array('name' => 'phone', 'id' => 'phone', 'type' => 'text'); $this->data['password'] = array('name' => 'password', 'id' => 'password', 'type' => 'password'); $this->data['password_confirm'] = array('name' => 'password_confirm', 'id' => 'password_confirm', 'type' => 'password'); $this->data['options_user'] = options_row('users', 'get_users', 'id', 'full_name', '-- Pilih Pengguna --'); $this->_render_page('users/index', $this->data); }
function index() { permissionAdmin(); redirect('pengaturan/satuan', 'refresh'); }
public function index() { permissionAdmin(); $this->_render_page('users/index', $this->data); }