title: Access an object method with Twig
body: <p>I have a symfony controller returning this:</p>
  
  <pre><code>return $this-&gt;render('MyBundle:Default:index.html.twig', array('menu' =&gt; $menu));
  </code></pre>
  
  <p><code>menu</code> is a <code>Menu</code> object.</p>
  
  <p>In my template I want to call a method from the Menu class:</p>
  
  <pre><code>getHTML(string s1, String s2, array tab) 
  </code></pre>
  
  <p>returning a HTML string.</p>
  
  <p>How do I do that in the template? Is it even possible ?</p>