Satellite fixes : ps
This commit is contained in:
parent
630b6abee5
commit
5af34fbaba
@ -762,19 +762,16 @@ class Flyhi_Controller extends REST_Controller {
|
||||
$view_data['geo_location'] = $flyhipd_data[0]['geo_location'];
|
||||
|
||||
$satellite_image = $this->Flyhi_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS);
|
||||
// if(!empty($satellite_image)){ // checking Entity Available or
|
||||
$bucket_name = LENDER_BUCKET_NAME_PREFIX.$flyhipd_data[0]['lender_id'];
|
||||
$bucket_key = "sales_pd/".$flyhipd_data[0]['sales_pd_id']."/images/satellite.png";
|
||||
$singed_uri = $this->aws_s3->getSingleObjectInaBucketAsSignedURI($bucket_name, $bucket_key,'30 minutes');
|
||||
$img_url = 'data:image/gif;base64,'.$singed_uri;
|
||||
$view_data['satellite_image'] = $img_url;
|
||||
// }else{ $view_data['satellite_image'] = ""; }
|
||||
$view_data['satellite_image'] = $singed_uri;
|
||||
// $view_data['satellite_image'] = $this->Flyhi_Model->selectCustomRecords(array('*'),array('fk_sales_pd_id' => $pd_id,'img_name' => 'satellite','isactive' => 1),SALEPD_DOCS);
|
||||
// die();
|
||||
//$view_name = $flyhipd_data[0]['short_name'].'_'.$flyhipd_data[0]['abbr'];
|
||||
$view_name = $flyhipd_data[0]['short_name'];
|
||||
$html_content = $this->load->view('sale_pd_templates/'.$view_name,$view_data,true);
|
||||
//echo $html_content;die();
|
||||
// echo $html_content;die();
|
||||
$pdf_doc = $this->pdfgenerator->generate($html_content, $filename='version', $stream=false, $paper = 'A4', $orientation = "portrait");
|
||||
//End of PDF Gen using DOM PDF
|
||||
$output_file = $this->external_path ."/sales_pd/" .$pd_id. "/temp.pdf";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user