[eluser]Unknown[/eluser]
At the minute I am getting an array from my model like so
Code:
function get_sites() {
echo json_encode($data['usersites'] = $this->usersites_model->get_user_sites($this->session->userdata('account_id')));
}
This sends perfectly to my view except I have a URL in the array that I need to urldecode before sending it to the view.
How would I go about editing the array before sending it?