title: CakePHP - Routing to admin
body: <p>Noob question!</p>
  
  <p>I have a complete admin setup: login, authentication an so on, it's working.
  So, now i need a new controller to another situation and then i create the controller named PressDownloadsController and the correct views to every action inside this new controller.</p>
  
  <p>I also created the following route:</p>
  
  <pre><code>Router::connect('/pressdownloads', array('controller' =&gt; 'pressdownloads', 'action' =&gt; 'downloads'));
  </code></pre>
  
  <p>Inside the pressDownloads controller, there's some redirect between some actions.</p>
  
  <p>When i try to open the url /pressdownloads/downloads or just /pressdownloads it just goes to admin controller and i need to login in before acess the pressdownloads area. </p>
  
  <p>Why?</p>
  
  <p>The Auth Settings inside UsersController (admin):</p>
  
  <p>Ok. I get it.
  So the auth settings:</p>
  
  <pre><code>      public $components = array(
  
      'Session',
  
      'Auth' =&gt; array(
  
          'loginAction' =&gt; array(
  
              'controller' =&gt; 'users',
  
              'action' =&gt; 'login',
  
              'prefix' =&gt; 'admin',
  
          ),
  
          'loginRedirect' =&gt; '/admin/events',
  
          'logoutRedirect' =&gt; '/admin',
  
          'authError' =&gt; 'Acesso negado',
  
          'flash' =&gt; array(
  
              'element' =&gt; 'admin/messages/error',
  
              'key' =&gt; 'auth',
  
              'params' =&gt; array()
  
          ),
  
          'authorize' =&gt; array('Controller'),
  
          'authenticate' =&gt; array(
  
              'Form' =&gt; array(
  
                  'fields' =&gt; array('username' =&gt; 'email')
  
              )
  
          )
  
      )
  
  );
  </code></pre>