title: CakePHP title_for_layout
body: <p>I have this function:</p>
  
  <pre><code>function view ( $id )
  {
      $this-&gt;layout = 'page';
  
      $this-&gt;User-&gt;id = $id;
  
      $this-&gt;set('title_for_layout', $username);
  
      $this-&gt;set('users', $this-&gt;User-&gt;read());
  }
  </code></pre>
  
  <p>What I want to do is show the username as the title but the current code I have doesn't do this... how do I do it?</p>