title: getAttribute in template
body: <p>in action i can:</p>
  
  <pre><code>$this-&gt;getUser()-&gt;getAttribute('id');
  </code></pre>
  
  <p>but how can i make it in template and in model in Symfony 1.4?</p>
  
  <p><a href="http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/" rel="nofollow">http://webmozarts.com/2009/07/01/why-sfcontextgetinstance-is-bad/</a> what use instead of getInstance?</p>