title: DOM PDF is not working when loading Codeigniter's view file
body: <p>I am trying to create PDF file using DOM pdf and Codeigniter. I have the following script in my Controller and I have kept the DOM folder inside my controller . But when I run the script I get fatal error message.</p>
  
  <p>But when I send a value from my model to DOMPDF's $html which is in my controller .. I can generate the pdf.</p>
  
  <p>Could you please kindly help me how to get rid of this error?</p>
  
  <pre><code>    include_once('dompdf/dompdf_config.inc.php'); 
      $html= $this-&gt;load-&gt;view('view_pdf');
      $dompdf = new DOMPDF();
      $dompdf-&gt;load_html($html);
      $dompdf-&gt;set_paper("a4", "landscape" ); 
  
      $dompdf-&gt;render();
      $dompdf-&gt;stream("my_pdf.pdf", array("Attachment" =&gt; 0));   
  </code></pre>
  
  <p>This is my View File ;</p>
  
  <pre><code>&lt;html&gt;
   &lt;head&gt;
  &lt;style&gt;
      #header { position: absolute; left: 0; top: -50px; right: 0; height: 140px; text-align:  center;  }
      #footer {position: fixed ; left: 0px; bottom: -20px; right: 0px; height: 30px; font-size:10; }
      #footer .page:after { content: counter(page, upper-roman); }
  
  
          #table-6 {
          width: 100%
          border: 1px solid #B0B0B0;
          }
          #table-6 tbody {
          /* Kind of irrelevant unless your .css is alreadt doing something else */
          margin: 0;
          padding: 0;
          border: 0;
          outline: 0;
          font-size: 100%;
          vertical-align: baseline;
          background: transparent;
          }
  
  
          #table-6 td {
          padding: 3px 10px;
          font-size: 12px;
          font-weight: normal;
          text-align:center;
          }
          #table-6 tr:nth-child(even) {
          background: #F2F2F2;
          font-size: 12px;
          font-weight: normal;
          }
  
  
  
  
   &lt;/style&gt;
  
    &lt;/head&gt;
  
      &lt;body&gt;
  
  
       This is a test 
      &lt;/body&gt;
  
      &lt;/html&gt;
  </code></pre>