title: How to set Cookie in smarty template with php?
body: <p>I currently have an issue with setting a cookie in a block of php code that is in a .tpl smarty template class.</p>
  
  <p>In the .tpl class I have somethng like :</p>
  
  <pre><code>{php}
      setcookie("school", "test");
  {/php}
  
  School: { $smarty.cookies.school }
  </code></pre>
  
  <p>However this does not print out anything.  I know the php setcookie call works when its in a .php file alone, since I've tested that, but can't get it to work with the php snippet of code is in a .tpl class.</p>
  
  <p>Any Advice Appreciated,
  D</p>