title: Block access to pages in cakePHP
body: <p>How do I block access to any page in cakePHP. With page, I'm referring to actual views lying in the Page folder.</p>
  
  <p>When I remove this line in, it works, but it also stops users from logging in. It would create a direct loop:</p>
  
  <pre><code>$this-&gt;Auth-&gt;allow('display');
  </code></pre>
  
  <p>Basically, when a user wants to view any page, and they are not logged in, they will be redirected to the login (<code>app/users/login</code>) page. After they've logged in, they will be directed to the page they last tried to access.</p>
  
  <p>How would I go about this?</p>