title: Using smarty variable within {php} tags
body: <p>Very simple question, is it possible to use a smarty var inside the {php}{/php} tags. I know it's deprecated, pointless, not recommended, etc., but please, I am looking for a simple patch !</p>
  
  <p>Something like</p>
  
  <pre><code>{php} 
  
   $result = mysql_query("SELECT value FROM table WHERE fieldid = 9 AND relid = {MYSMARTYVAR}");
  
  {/php}
  </code></pre>
  
  <p>Thank you!</p>
  
  <p>Update: I`ve tried the following methods.</p>
  
  <pre><code>1-$var = $this-&gt;get_template_vars('smarty_var');
  2-$var = $smarty-&gt;getTemplateVars('smarty_var');
  3-$var = $this-&gt;_tpl_vars['smarty_var'];
  </code></pre>
  
  <p>All give me Fatal errors, $this when not in object context etc.
  I`m in the WHMCS environment, if this explains why perhaps certain things are blocked or disabled?</p>
  
  <p>Update 2; found a solution more simple than it seemed, I feel silly:
      $var= "{$mysmartyvar}";</p>
  
  <p>Thanks everyone!</p>