this is my codes:
$this->data['users'] = $this->Ion_auth->usersdata();
foreach($users as $list){
$data = array(
'id' =>$list->id,
'email' => $list->email,
'username' => $list->username,
'active' => $list->active
);
}
$this->data['userslist'] = $data;
$this->render('users/users_list','public_master');
i want to get data from Ion_auth as a model and userdata as a method then store them to $data as an array just to encrypt some of them like id before controller sent them to the view.