A PHP Error was encountered

Severity: Notice

Message: Only variable references should be returned by reference

Filename: core/Common.php

Line Number: 244

site_model->getAdmin(2); $data['services']=$this->site_model->getAllRecords('services','sort_order'); /*$this->template->add_js('js/script.js');*/ $this->template->write_view('header','includes/header',$data); $this->template->write_view('content','services',$data); $this->template->write_view('footer','includes/footer',$data); $this->template->render(); } function details($id){ $data['websitetitle']=$this->site_model->getAdmin(2); $data['services']=$this->site_model->getOneRow('services','title_url',$id); /*$this->template->add_js('js/script.js');*/ $this->template->write_view('header','includes/header',$data); $this->template->write_view('content','services_details',$data); $this->template->write_view('footer','includes/footer',$data); $this->template->render(); } public function downloadpdf($id,$pdf){ $this->load->helper('download'); $catalogue = $this->site_model->getOneRow('products','id_products',$id); if(!empty($catalogue->$pdf)){ $data = file_get_contents("./uploads/products/".$catalogue->$pdf); // Read the file's contents $name = $catalogue->$pdf; force_download($name, $data); } } }

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /home/eissaa/public_html/system/core/Exceptions.php:170)

Filename: core/Common.php

Line Number: 414

404 Page Not Found

404 Page Not Found

The page you requested was not found.