I got this error:
htmlspecialchars() expects parameter 1 to be string, object given
I'm using in the controller:
$data = '{"pr":{"code":"1"},"ac":[[{"icon":"web","action":"link","url":"asd"}]]}'
$newData = json_decode($data);
And I send it to the view as an array: 'data' => $newData And when I try to use $data into the view, it gives me that error
Tried already to use $data->ac OR $data['ac'] but still the same... Some help, please?