title: Phalcon route doesn't work
body: <p>My phalcon app has worked fine with standard MVC route convention.
  However, I want to handle some variable via URL, then I have a route:</p>
  
  <pre><code>$router = new \Phalcon\Mvc\Router();
  $router-&gt;add("/timesheet/some/{year:[0-9]+}/{month:[0-9]{2}}/{day:[0-9]{2}}", "Timesheet::some");
  $router-&gt;add("/timesheet/getreport/{type:[a-z]}/{year:[0-9]+}/{month:[0-9]{2}}/{day:[0-9]{2}}", "Timesheet::getreport");
  $router-&gt;addPost("/user/auth", "User::auth");
  
  return $router;
  </code></pre>
  
  <ol>
  <li><p>The first route (timesheet/some) worked fine, I can access to "year", "month" variable using <code>$year = $this-&gt;dispatcher-&gt;getParam("year");</code>, however the second route (timesheet/getreport) doesn't work. In this case, <code>$year = $this-&gt;dispatcher-&gt;getParam("year");</code> return null. </p></li>
  <li><p>If I changed to </p>
  
  <p>$router = new \Phalcon\Mvc\Router(false);</p>
  
  <p>$router->add("/:controller/:action", array(
      "controller" => 1,
      "action"     => 2,
  ));    </p>
  
  <p>$router->add("/timesheet/some/{year:[0-9]+}/{month:[0-9]{2}}/{day:[0-9]{2}}", "Timesheet::some");
  $router->addPost("/timesheet/getreport/{type:[a-z]}/{year:[0-9]+}/{month:[0-9]{2}}/{day:[0-9]{2}}", "Timesheet::getreport");
  $router->addPost("/user/auth", "User::auth");<br>
  return $router;</p></li>
  </ol>
  
  <p>every request will be routed to index/index. My project URL is localhost/fpas, and I already try both route /fpas/timesheet/some and /timesheet/some but it always redirect to index/index. What's wrong with it? (security/auth is commented out, so it's not result from authentication).</p>
  
  <ol start="3">
  <li>From my understand, the default route, $router = new \Phalcon\Mvc\Router(); only allow you to follow MVC convention, while $router = new \Phalcon\Mvc\Router(false); do but you have to specific all routes for every controller/action. Can I keep the convention for most of the action, while have specific rewrite routes for some action. How can I do that?</li>
  </ol>
  
  <p>Thank you very much.</p>