title: Calling static methods in Smarty, using variable as class name
body: <p>I want to do something like this:</p>
  
  <pre><code>{$foo = 'SomeClassName'}
  {$foo::someStaticMethod()}
  </code></pre>
  
  <p>When I compile my template, I get an error: <code>Fatal error: Uncaught --&gt; Smarty: Invalid compiled template for ...</code></p>
  
  <p>After the file is compiled, when trying to display the template, I get this error: <code>Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM), expecting ',' or ';' in ...</code></p>
  
  <p>When I inspect the compiled template, it contains this statements: <code>&lt;?php echo $_smarty_tpl-&gt;tpl_vars['foo']-&gt;value::someStaticMethod();?&gt;</code>, which obviously is not valid PHP syntax (at the moment).</p>
  
  <p>From my understanding of the last example <a href="http://www.smarty.net/docs/en/advanced.features.static.classes.tpl" rel="nofollow">here</a>, Smarty should support this.</p>
  
  <p>Am I doing something wrong, or is this a bug in Smarty?</p>