this is my controller:
function dompdf(){
$this->load->view('contracts/equipment_pdf');
$html = $this->output->get_output();
$this->load->library('dompdf_gen');
$this->dompdf->load_html($html);
$this->dompdf->render();
$this->dompdf->stream("test.pdf", array("Attachment" => 0));
}
Q: How can i add data there? like $data['name'] = "name";
Q2: How can i put the data in my pdf generator? how will i call it