title: Kohana 3.2 set router for a controller which has a prefix URI belongs to another controller
body: <p>I have 2 controllers account.php and address.php in the same directory APP/controller. For the first controller account.php, I use default router for URI like: account/create, account/login, account/logout... When writing second controller, I want to use all URI of address.php start with account/address/. As you can see here, I'm taking the same URI router matches with account controller.</p>
  
  <p>My first approach:</p>
  
  <pre><code>// Add new address
  Route::set('address', 'account/address/&lt;action&gt;')
          -&gt;defaults(array(
                  'controller' =&gt; 'address',
                  'action'     =&gt; 'index',
          ));
  </code></pre>
  
  <p>My address controller</p>
  
  <pre><code>public function before()
  {
      parent::before();
  
      if ( ! Auth::instance()-&gt;logged_in())
      {
          // Redirect to a login page (or somewhere else).
          $this-&gt;request-&gt;redirect('');
      }
  }
  
  
  
  // nothing here
  public function action_index()
  {
      $this-&gt;request-&gt;redirect('');
  }
  
  
  // create account
  public function action_create()
  {
  
      // Create an instance of a model
      $profile = new Model_Address();
  
      // received the POST
      if (isset($_POST) &amp;&amp; Valid::not_empty($_POST)) 
      {   
  
          // // validate the form
          $post = Validation::factory($_POST)
          -&gt;rule('firstname', 'not_empty')
          -&gt;rule('lastname', 'not_empty')
          -&gt;rule('address', 'not_empty')
          -&gt;rule('phone', 'not_empty')
          -&gt;rule('city', 'not_empty')
          -&gt;rule('state', 'not_empty')
          -&gt;rule('zip', 'not_empty')
          -&gt;rule('country', 'not_empty')
          -&gt;rule('primary_email_address', 'email');
  
          // if the form is valid and the username and password matches
          if ($post-&gt;check()) 
          {
  
              if($profile-&gt;create_profile($_POST)) 
              {
                  $sent = kohana::message('profile', 'profile_created');
              }
  
          } else {
              // validation failed, collect the errors
              $errors = $post-&gt;errors('address');
          }
  
      }
  
      // display
      $this-&gt;template-&gt;title = 'Create new address';
      $this-&gt;template-&gt;content = View::factory('address/create')
              -&gt;bind('post', $post)
              -&gt;bind('errors', $errors)
              -&gt;bind('sent', $sent);
  }
  </code></pre>
  
  <p>It seems to be ok, but the router account/address/create is not working. Kohana throws 404 message for that URI.</p>
  
  <p>Anyone knows why it happens?</p>