title: Get current user from View
body: <p>So what I want to do is, in my main layout, have a menu for logged in users, and a different for anon users.</p>
  
  <p>THe layout will be used on every page, so I'm not sure how to do this, as I've seen, the Auth Component can only be used in the controller, this would be nice if I had to do this in only one view, but for every view, how can I do this? Do I have to do something on AppController?</p>
  
  <p>What I want to do is basically</p>
  
  <pre><code>// layout
  &lt;?php if(logged): ?&gt;
  Welcome &lt;?php echo $user; ?&gt;
  &lt;?php else: ?&gt;
  Welcom anon, Log in?
  &lt;?php endif; ?&gt;
  </code></pre>