; if(isset($_POST["hidden_html_shear_copper"]) && $_POST["hidden_html_shear_copper"] != '') { $this->load->library('pdf'); $html = $this->output->get_output(); $file_name = 'Shear_Strength_copper.pdf'; $pdf_file_path="assets/pdf/".$file_name; $this->session->set_userdata($pdf_file_path); $html .= $_POST["hidden_html_shear_copper"]; $this->pdf->loadHtml($html); $this->pdf->render(); $output = $this->pdf->output(); $this->pdf->stream($file_name, array("Attachment" => false)); } } public function sheet_metal_gauge_size() { $where = array('page_title'=>'Sheet Metal Gauge'); $data['page_detail'] = $this->Alldata->DetailData('page_seo',$where); $this->breadcrumb->add('Sheet Metal Gauge', $this->uri->uri_string); $this->load->view('minitools/sheet_metal_gauge_size',$data); } public function drill_size() { $where = array('page_title'=>'Drill Bit Sizes'); $data['page_detail'] = $this->Alldata->DetailData('page_seo',$where); $this->breadcrumb->add('Drill Bit Sizes', $this->uri->uri_string); $this->load->view('minitools/drill_size',$data); } public function drill() { $where = array('page_title'=>'Mini Tools'); $data['page_detail'] = $this->Alldata->DetailData('page_seo',$where); $this->load->view('minitools/drill',$data); } public function tonnage_calculation() { $where = array('page_title'=>'Tonnage Calculator'); $data['page_detail'] = $this->Alldata->DetailData('page_seo',$where); $this->breadcrumb->add('Tonnage Calculator', $this->uri->uri_string); $this->load->view('minitools/tonnage_calculation',$data); } public function im_cooling(){ $data['im_cooling_cat'] = $this->Minitools_model->Getim_cooling_cat_List(); $data['select_imcooling'] = 0; $data['select_specific_type'] = 0; $this->session->set_userdata($data); $where = array('page_title'=>'Thermal Diffusivity'); $data['page_detail'] = $this->Alldata->DetailData('page_seo',$where); $this->breadcrumb->add('Thermal Diffusivity', $this->uri->uri_string); $this->load->view('minitools/Im_cooling_tool',$data); } public function fetch_thermal_subcat(){ if($this->input->post('im_cool_cat_id')) { echo $this->Minitools_model->fetch_thermal_subcat($this->input->post('im_cool_cat_id')); } } public function get_selected_val(){ $this->form_validation->set_rules('im_cooling_type','im_cooling_type','trim|required'); $this->form_validation->set_rules('im_cooling_specific_type','im_cooling_specific_type','trim|required'); $this->breadcrumb->add('Thermal Diffusivity', $this->uri->uri_string); $data['im_cooling'] = $this->Minitools_model->Getim_cooling_List(); if($this->form_validation->run() == FALSE) { $this->im_cooling(); } else { if(isset($_POST['thermal'])) { $data['im_cooling'] = $this->Minitools_model->Getim_cooling_List(); $data=array( $im_cooling_type = $this->input->post('im_cooling_type',true), $im_cooling_specific_type_id = $this->input->post('im_cooling_specific_type',true) ); echo "
"; $data['im_cooling'] = $this->Minitools_model->Getim_cooling_List(); $data['thermal'] = $this->Minitools_model->Getim_cooling_selected($im_cooling_specific_type_id); $density = $data['thermal'][0]->density; $sp_heat_capacity = $data['thermal'][0]->sp_heat_capacity; $thermal_conductivity = $data['thermal'][0]->thermal_conductivity; $data['thermal_diffusivity']=$thermal_conductivity/($density*$sp_heat_capacity); $this->allData['thermal_data'] = $data; $this->allData['select_imcooling'] = $_POST['im_cooling_type']; $this->allData['select_specific_type'] = $_POST['im_cooling_specific_type']; $this->session->set_userdata($this->allData); $this->session->set_userdata($this->allData); $this->commonAll(); } } } public function Punch_force_calculator() { $this->load->view('minitools/punch_force_calculator'); } public function Punching_clearance_calculator() { $this->load->view('minitools/punching_clearance_calculator'); } public function commonAll() { $this->allData['im_cooling_cat'] = $this->Minitools_model->Getim_cooling_cat_List(); $this->allData['select_imcooling'] = 0; $this->allData['select_specific_type'] = 0; $this->load->view('minitools/Im_cooling_tool',$this->allData); $this->session->set_userdata($this->allData); } } ?>

A PHP Error was encountered

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at /var/www/html/Smart-Solutions-CE-version/application/controllers/minitools/Minitools.php:1)

Filename: core/Common.php

Line Number: 570

Backtrace:

File: /var/www/html/Smart-Solutions-CE-version/index.php
Line: 167
Function: require_once