title: CakePHP Authentication with Prefix Routing
body: <p>I'm building a site with CakePHP which I would like to have 3 sections:</p>
  
  <ul>
  <li>public area</li>
  <li>user area</li>
  <li>admin area</li>
  </ul>
  
  <p>I've setup prefix routing in routes.php which looks like</p>
  
  <pre><code>Router::connect('/user/:controller/:action/*', array('prefix' =&gt; 'user', 'user' =&gt; true));
  Router::connect('/admin/:controller/:action/*', array('prefix' =&gt; 'admin', 'admin' =&gt; true));
  </code></pre>
  
  <p>I want it so any actions with the user_ prefix will redirect to a login screen if not already logged in and user type is 'normal' (side question: can a user be normal :P) and any actions with admin_ prefix also redirect but require user type of admin.</p>
  
  <p>I started trying to use the Auth component but it seems quite inflexible whereas ACL seems over the top. Could anyone offer some advice on the best way to achieve what I want?   </p>