title: ZF2: how to tell if a user is logged in with ZfcUser in the layout.phtml file
body: <p>I'm using ZfcUser to Authenticate.  Currently trying to tell if a user is logged in the layout.phtml file using ...</p>
  
  <pre><code>&lt;? if ($this-&gt;zfcUserAuthentication()-&gt;hasIdentity()): ?&gt;
  </code></pre>
  
  <p>I'm guessing I need to add some path to the application config file?</p>