How to work with PDF in CodeIgniter? [closed]

-3
function cadastra_pesquisa() {
    $this->load->library('form_validation');
    $this->form_validation->set_rules('d_c_p_p', 'Domínio do conteúdo por parte do palestrante', 'required');
    $this->form_validation->set_rules('i_c_b', 'Instalações e coffee break', 'required');
    $this->form_validation->set_rules('h_p_c_g', 'Habilidade do palestrante na condução do grupo', 'required');
    $this->form_validation->set_rules('a_g_p', 'Avaliação Geral da Palestra', 'required');
    $this->form_validation->set_rules('c_a', 'Conteúdo Apresentado', 'required');
    if ($this->form_validation->run() == FALSE) {
        $data['info_sis'] = $this->db->get('info_sismarket')->result();
        $this->load->view('header_html');
        $this->load->view('header_view');
        $this->load->view('pesquisa/pesquisa_satisfacao_erro_view');
        $this->load->view('footer_view', $data);
        $this->load->view('footer_html');
    } else {
        $pesquisa['d_c_p_p'] = $this->input->post('d_c_p_p');
        $pesquisa['i_c_b'] = $this->input->post('i_c_b');
        $pesquisa['h_p_c_g'] = $this->input->post('h_p_c_g');
        $pesquisa['a_g_p'] = $this->input->post('a_g_p');
        $pesquisa['c_a'] = $this->input->post('c_a');
        $pesquisa['s_c'] = $this->input->post('s_c');

        $this->load->model('usuario_model');
        $this->usuario_model->GravaPesquisa($pesquisa);

        $this->load->view('header_html');
        $this->load->view('header_view');
        $this->load->view('pesquisa/pesquisa_satisfacao_ok_view');
        $this->load->view('footer_view');
        $this->load->view('footer_html');
    }
}
    
asked by anonymous 29.01.2014 / 15:27

3 answers

0

Dude you basically need to do a query in the database, mount an HTML with query result and then use DOMPDF to render HTML.

Try to use tables and avoid using CSS because DOMPDF has some limitations.

I hope I have helped.

    
31.01.2014 / 14:32
0

As you asked and the content itself does not help much, do you have any specific problems?

See if help link

    
29.01.2014 / 15:33
0

If you are going to use the PDF skirt with only tables (as I had to use) I suggest taking a look at DataTables with the TableTools plugin

    
29.01.2014 / 15:53