Flyhi Controller die remove : ps
This commit is contained in:
parent
7371a34e5a
commit
a50ec022f4
@ -741,8 +741,7 @@ class Flyhi_Controller extends REST_Controller {
|
||||
|
||||
$all_section_data = $this->Flyhi_Model->selectCustomRecords(array('*'),array('sales_pd_id' => $pd_id,'isactive' => 1),SALESPD_SECTION_DATA,array(),'','section_id','ASC');
|
||||
// print_r($all_section_data);die();
|
||||
// if(!$flyhipd_data[0]['is_pdf'] || $flyhipd_data[0]['is_edited'])
|
||||
if(1)
|
||||
if(!$flyhipd_data[0]['is_pdf'] || $flyhipd_data[0]['is_edited'])
|
||||
{
|
||||
|
||||
$all_section_data = $this->Flyhi_Model->selectCustomRecords(array('*'),array('sales_pd_id' => $pd_id,'isactive' => 1),SALESPD_SECTION_DATA,array(),'','section_id','ASC');
|
||||
@ -787,7 +786,7 @@ class Flyhi_Controller extends REST_Controller {
|
||||
//$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