title: How to Call Static Function In Symfony2 Twig Template
body: <p>How to call my static function in twig template without passing through controller?</p>
  
  <p>For example: </p>
  
  <pre><code>...
  {{ MyStaticClass::getData() }}
  ...
  </code></pre>
  
  <p>My Static Class:</p>
  
  <pre><code>class MyStaticClass {
      const v1 = 'Value1';
      const v2 = 'Value2';
      ...
  
      public static function getData() {
          ...
  
          return $data;
      }
  }
  </code></pre>