title: Cakephp - Print (physical) data from Database
body: <p>I am having a hard time to get this done, what I need is, print a contract that is on my database, when I say print, is physical printing.</p>
  
  <p>I can access the content I want to print using this</p>
  
  <pre><code>&lt;?php echo @$contrato['Content']['text']; ?&gt;
  </code></pre>
  
  <p>but I don't what else to do, like, get this info, save to a temp file and then open and print?
  I'm lost.</p>
  
  <p>I know if I use:</p>
  
  <pre><code>&lt;script&gt;window.print()&lt;/script&gt;
  </code></pre>
  
  <p>it will print the entire page, which I don`t want, I would like to print just what that php code brings me.</p>