title: Smarty call a static class method
body: <p>I want to call a php method in my smarty template.</p>
  
  <p>I have the class</p>
  
  <pre><code>class TestClass
  {
      public static myMth($vars) {
          var_dump($vars);
      }
  }
  </code></pre>
  
  <p>In my template i put:</p>
  
  <pre><code>{TestClass::myMth($someVar)}
  </code></pre>
  
  <p>That doesn't work. I have the error:</p>
  
  <blockquote>
    <p>Parse error: syntax error, unexpected 'myMth' (T_STRING), expecting
    variable (T_VARIABLE)</p>
  </blockquote>
  
  <p>Is there something wrong in my code ?</p>