I'm getting an " array to string conversion " error in codeigniter ` there is the function
==> Modele
public function getCodeActivationWebsite($EmailCode) {
$this->db->select('advancedActivationWebsiteCode')->from($this->table)->where('advancedActivationEmailCode' , $EmailCode);
$query = $this->db->get();
return $query->result();
}
==> controllers
function downloadfile($codeActivation = '') {
// Read the file's contents
$name = $this->advanced->getCodeActivationWebsite($codeActivation).'.html';
$data = file_get_contents(PATH_UPLOADS_ACTIVATION_WEBSITE . $name); // La path n'est pas valide
//getCode
//ActivationWebsite($EmailCode)
if (force_download($name, $data)) {
return true;
} else {
return false;
}
}